Skip to content

Commit

Permalink
fix: use concrete versions for all used actions
Browse files Browse the repository at this point in the history
...instead of referrring to branches.
  • Loading branch information
stempler committed Apr 12, 2024
1 parent e4266c0 commit fd56f3b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Vulnerability check
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
with:
image-ref: "${{ inputs.image }}:${{ inputs.tag }}"
create-test-report: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
run: mkdir -p ${{ inputs.multi-module && 'trivy-gha-scan/build/test-results' || 'build/test-results' }}

- name: Vulnerability scan
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
with:
junit-test-output: "${{ inputs.multi-module && 'trivy-gha-scan/build/test-results/trivy.xml' || 'build/test-results/trivy.xml' }}" # added to unit test report
report-retention-days: 30
Expand All @@ -179,7 +179,7 @@ jobs:

- name: Publish/release with Gradle
if: ${{ !inputs.skip-build && inputs.publish-tasks != '' }}
uses: wetransform/gha-gradle-semantic-release@master
uses: wetransform/gha-gradle-semantic-release@v1.1.0
with:
publish-tasks: ${{ inputs.publish-tasks }}
release: ${{ inputs.semantic-release }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gradle-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ jobs:
run: mkdir -p ${{ inputs.multi-module && 'trivy-gha-scan/build/test-results' || 'build/test-results' }}

- name: Vulnerability scan
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
with:
image-ref: 'docker.io/${{ inputs.image-tag }}'
junit-test-output: "${{ inputs.multi-module && 'trivy-gha-scan/build/test-results/trivy.xml' || 'build/test-results/trivy.xml' }}" # added to unit test report
report-retention-days: 30
report-tag: ${{ inputs.image-tag }}

- name: Vulnerability scan (Image 2)
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
if: ${{ inputs.image-tag-2 != '' }}
with:
image-ref: 'docker.io/${{ inputs.image-tag-2 }}'
Expand All @@ -127,7 +127,7 @@ jobs:
report-tag: ${{ inputs.image-tag-2 }}

- name: Vulnerability scan (Image 3)
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
if: ${{ inputs.image-tag-3 != '' }}
with:
image-ref: 'docker.io/${{ inputs.image-tag-3 }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/play-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: mkdir -p ${{ inputs.junit-test-folder }}

- name: Vulnerability scan
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
with:
image-ref: 'docker.io/${{ inputs.image-tag }}'
junit-test-output: "${{ inputs.junit-test-folder }}/trivy.xml" # added to unit test report
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
docker pull ${{ matrix.image }}
- name: Vulnerability scan
uses: wetransform/gha-trivy@master
uses: wetransform/gha-trivy@v1.1.1
with:
image-ref: ${{ matrix.image }}
create-test-report: ${{ inputs.create-test-report }}
Expand Down

0 comments on commit fd56f3b

Please sign in to comment.