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 d098059 commit 5f54d13Copy full SHA for 5f54d13
2 files changed
.github/workflows/ci-cd.yml
@@ -136,7 +136,7 @@ jobs:
136
- name: Run container security scan with Trivy
137
uses: aquasecurity/trivy-action@master
138
with:
139
- image-ref: ${{ fromJSON(steps.meta.outputs.tags)[0] }}
+ image-ref: ${{ steps.meta.outputs.tags }}
140
format: 'sarif'
141
output: 'trivy-results.sarif'
142
test-workflow.yml
@@ -0,0 +1,20 @@
1
+name: Test Metadata Tags
2
+on: workflow_dispatch
3
+
4
+jobs:
5
+ test:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Extract metadata
9
+ id: meta
10
+ uses: docker/metadata-action@v5
11
+ with:
12
+ images: ghcr.io/test/repo
13
+ tags: |
14
+ type=ref,event=branch
15
+ type=sha,prefix={{branch}}-
16
17
+ - name: Show tags
18
+ run: |
19
+ echo "Tags: ${{ steps.meta.outputs.tags }}"
20
+ echo "First tag would be used by Trivy"
0 commit comments