From a67f7cb32fae54bdcae17017c5cc61fe2147a8ea Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Sat, 5 Oct 2024 21:26:23 +0400 Subject: [PATCH] fix: bump trivy version Signed-off-by: knqyf263 --- .github/workflows/bump-trivy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-trivy.yaml b/.github/workflows/bump-trivy.yaml index 626f8f7..25f282a 100644 --- a/.github/workflows/bump-trivy.yaml +++ b/.github/workflows/bump-trivy.yaml @@ -17,8 +17,9 @@ jobs: - uses: actions/checkout@v4 - name: Update Trivy versions run: | - sed -r -i "s/ghcr.io\/aquasecurity\/trivy:[0-9]+\.[0-9]+\.[0-9]+/ghcr.io\/aquasecurity\/trivy:${{ inputs.trivy_version }}/" Dockerfile find test/data -type f -name '*.test' | xargs sed -r -i 's/"version": "[0-9]+\.[0-9]+\.[0-9]+"/"version": "${{ inputs.trivy_version }}"/' + sed -r -i '/^\| `version`/ s/[0-9]+\.[0-9]+\.[0-9]+/${{ inputs.trivy_version }}/g' README.md + sed -r -i 's/(default:[ ]*'"'"')v[0-9]+\.[0-9]+\.[0-9]+/\1v${{ inputs.trivy_version }}/' action.yaml - name: Create PR id: create-pr