We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f54d13 commit fbb54b4Copy full SHA for fbb54b4
1 file changed
.github/workflows/ci-cd.yml
@@ -133,10 +133,14 @@ jobs:
133
cache-from: type=gha
134
cache-to: type=gha,mode=max
135
136
+ - name: Extract first tag for Trivy
137
+ id: first-tag
138
+ run: echo "tag=$(echo '${{ steps.meta.outputs.tags }}' | head -n1)" >> $GITHUB_OUTPUT
139
+
140
- name: Run container security scan with Trivy
141
uses: aquasecurity/trivy-action@master
142
with:
- image-ref: ${{ steps.meta.outputs.tags }}
143
+ image-ref: ${{ steps.first-tag.outputs.tag }}
144
format: 'sarif'
145
output: 'trivy-results.sarif'
146
0 commit comments