Skip to content

Commit fbb54b4

Browse files
committed
Another pass at dealing with tags
1 parent 5f54d13 commit fbb54b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,14 @@ jobs:
133133
cache-from: type=gha
134134
cache-to: type=gha,mode=max
135135

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+
136140
- name: Run container security scan with Trivy
137141
uses: aquasecurity/trivy-action@master
138142
with:
139-
image-ref: ${{ steps.meta.outputs.tags }}
143+
image-ref: ${{ steps.first-tag.outputs.tag }}
140144
format: 'sarif'
141145
output: 'trivy-results.sarif'
142146

0 commit comments

Comments
 (0)