Skip to content

Commit f117efb

Browse files
authored
Merge pull request moby#5223 from crazy-max/ci-scout-scan-alt-tags
ci: missing tags to be scanned with scout
2 parents a708e34 + 5f85cd1 commit f117efb

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/buildkit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
run: |
217217
./hack/images "${{ needs.prepare.outputs.tag }}" "$IMAGE_NAME" "${{ needs.prepare.outputs.push }}"
218218
env:
219-
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
219+
RELEASE: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
220220
TARGET: ${{ matrix.target-stage }}
221221
CACHE_FROM: type=gha,scope=image${{ matrix.target-stage }}
222222
CACHE_TO: type=gha,scope=image${{ matrix.target-stage }}
@@ -230,6 +230,12 @@ jobs:
230230
security-events: write
231231
needs:
232232
- image
233+
strategy:
234+
fail-fast: false
235+
matrix:
236+
tag:
237+
- master
238+
- master-rootless
233239
steps:
234240
-
235241
name: Checkout
@@ -247,7 +253,7 @@ jobs:
247253
with:
248254
version: ${{ env.SCOUT_VERSION }}
249255
format: sarif
250-
image: registry://${{ env.IMAGE_NAME }}:master
256+
image: registry://${{ env.IMAGE_NAME }}:${{ matrix.tag }}
251257
-
252258
name: Upload SARIF report
253259
uses: github/codeql-action/upload-sarif@v3

.github/workflows/frontend.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.prepare.outputs.typ }}" "${{ matrix.tag }}" "$IMAGE_NAME" "${{ needs.prepare.outputs.push }}"
123123
env:
124-
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
124+
RELEASE: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
125125
CACHE_FROM: type=gha,scope=${{ env.CACHE_SCOPE }}
126126
CACHE_TO: type=gha,scope=${{ env.CACHE_SCOPE }}
127127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -134,6 +134,12 @@ jobs:
134134
security-events: write
135135
needs:
136136
- image
137+
strategy:
138+
fail-fast: false
139+
matrix:
140+
tag:
141+
- master
142+
- master-labs
137143
steps:
138144
-
139145
name: Checkout
@@ -151,7 +157,7 @@ jobs:
151157
with:
152158
version: ${{ env.SCOUT_VERSION }}
153159
format: sarif
154-
image: registry://${{ env.IMAGE_NAME }}:master
160+
image: registry://${{ env.IMAGE_NAME }}:${{ matrix.tag }}
155161
-
156162
name: Upload SARIF report
157163
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)