diff --git a/.github/workflows/bump-trivy.yaml b/.github/workflows/bump-trivy.yaml index 33c59ec..a2e5481 100644 --- a/.github/workflows/bump-trivy.yaml +++ b/.github/workflows/bump-trivy.yaml @@ -42,26 +42,26 @@ jobs: BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} run: make test - - name: Create PR - env: - GH_TOKEN: ${{ secrets.TRIVY_ACTION_DEPLOY_TOKEN }} - TRIVY_VERSION: ${{ inputs.trivy_version }} - REPO: ${{ github.repository }} - BASE_BRANCH: ${{ github.event.repository.default_branch }} - run: | - gh auth setup-git - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - BRANCH="bump-trivy-${TRIVY_VERSION}" - git checkout -b "${BRANCH}" - git add action.yaml README.md test/ - git commit -m "chore(deps): Update trivy to v${TRIVY_VERSION}" - git push origin "${BRANCH}" - PR_RESPONSE=$(gh api repos/${REPO}/pulls \ - --method POST \ - --field title="chore(deps): Update trivy to v${TRIVY_VERSION}" \ - --field body="This PR was automatically generated by the bump-trivy workflow." \ - --field base="${BASE_BRANCH}" \ - --field head="${BRANCH}") - echo "Pull Request Number - $(echo "${PR_RESPONSE}" | jq -r '.number')" - echo "Pull Request URL - $(echo "${PR_RESPONSE}" | jq -r '.html_url')" + # - name: Create PR + # env: + # GH_TOKEN: ${{ secrets.TRIVY_ACTION_DEPLOY_TOKEN }} + # TRIVY_VERSION: ${{ inputs.trivy_version }} + # REPO: ${{ github.repository }} + # BASE_BRANCH: ${{ github.event.repository.default_branch }} + # run: | + # gh auth setup-git + # git config user.name "github-actions[bot]" + # git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + # BRANCH="bump-trivy-${TRIVY_VERSION}" + # git checkout -b "${BRANCH}" + # git add action.yaml README.md test/ + # git commit -m "chore(deps): Update trivy to v${TRIVY_VERSION}" + # git push origin "${BRANCH}" + # PR_RESPONSE=$(gh api repos/${REPO}/pulls \ + # --method POST \ + # --field title="chore(deps): Update trivy to v${TRIVY_VERSION}" \ + # --field body="This PR was automatically generated by the bump-trivy workflow." \ + # --field base="${BASE_BRANCH}" \ + # --field head="${BRANCH}") + # echo "Pull Request Number - $(echo "${PR_RESPONSE}" | jq -r '.number')" + # echo "Pull Request URL - $(echo "${PR_RESPONSE}" | jq -r '.html_url')"