Skip to content

Commit a51efb9

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 a51efb9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/bake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,10 @@ 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 }}"
380382
-
381383
name: Install Cosign
382384
if: ${{ needs.prepare.outputs.sign == 'true' || inputs.cache }}

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,10 @@ 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 }}"
341343
-
342344
name: Install Cosign
343345
if: ${{ needs.prepare.outputs.sign == 'true' || inputs.cache }}

0 commit comments

Comments
 (0)