Bump trivy to v0.68.1 #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bump trivy | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| trivy_version: | |
| required: true | |
| type: string | |
| description: 'The Trivy version in x.x.x format' | |
| run-name: Bump trivy to v${{ inputs.trivy_version }} | |
| jobs: | |
| bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set new version from input | |
| run: echo "NEW_VERSION=${{ inputs.trivy_version }}" >> $GITHUB_ENV | |
| - name: Update Trivy versions | |
| run: make bump-trivy | |
| - name: Update golden files | |
| run: make update-golden | |
| - name: Create PR | |
| id: create-pr | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.ORG_REPO_TOKEN }} | |
| title: "chore(deps): Update trivy to v${{ inputs.trivy_version }}" | |
| commit-message: "chore(deps): Update trivy to v${{ inputs.trivy_version }}" | |
| committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
| author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
| branch-suffix: timestamp | |
| branch: bump-trivy | |
| delete-branch: true | |
| - name: Check outputs | |
| run: | | |
| echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" | |
| echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" |