Skip to content

Commit aeba44b

Browse files
committed
add source and workflow origin policy for gha cache verification
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 94ca558 commit aeba44b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/bake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,11 @@ jobs:
375375
timestampThreshold = 1
376376
tlogThreshold = ${{ matrix.privateRepo == 'true' && '0' || '1' }}
377377
subjectAlternativeName = "https://github.com/docker/github-builder-experimental/.github/workflows/bake.yml*"
378+
githubWorkflowRepository = "docker/github-builder-experimental"
378379
issuer = "https://token.actions.githubusercontent.com"
379380
runnerEnvironment = "github-hosted"
381+
sourceRepositoryURI = "${{ github.server_url }}/${{ github.repository }}"
382+
sourceRepositoryRef = "${{ github.event_name != 'pull_request' && github.ref || '' }}"
380383
-
381384
name: Install Cosign
382385
if: ${{ needs.prepare.outputs.sign == 'true' || inputs.cache }}

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,11 @@ jobs:
336336
timestampThreshold = 1
337337
tlogThreshold = ${{ matrix.privateRepo == 'true' && '0' || '1' }}
338338
subjectAlternativeName = "https://github.com/docker/github-builder-experimental/.github/workflows/build.yml*"
339+
githubWorkflowRepository = "docker/github-builder-experimental"
339340
issuer = "https://token.actions.githubusercontent.com"
340341
runnerEnvironment = "github-hosted"
342+
sourceRepositoryURI = "${{ github.server_url }}/${{ github.repository }}"
343+
sourceRepositoryRef = "${{ github.event_name != 'pull_request' && github.ref || '' }}"
341344
-
342345
name: Install Cosign
343346
if: ${{ needs.prepare.outputs.sign == 'true' || inputs.cache }}

0 commit comments

Comments
 (0)