Skip to content

Commit f2a8d05

Browse files
authored
Fix pattern matching in dd-octo-sts policy (#10174)
* Fix pattern matching in dd-octo-sts policy
1 parent 1cf6a7b commit f2a8d05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/chainguard/self.pin-system-tests.create-pr.sts.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
issuer: https://token.actions.githubusercontent.com
22

3-
subject_pattern: repo:DataDog/dd-trace-java:ref:refs/heads/*
3+
subject_pattern: ^repo:DataDog/dd-trace-java:ref:refs/heads/.+$
44

55
claim_pattern:
66
event_name: (push|workflow_dispatch)
7-
ref: refs/heads/*
8-
job_workflow_ref: DataDog/dd-trace-java/\.github/workflows/pin-system-tests\.yaml@refs/heads/master
7+
ref: refs/heads/.+
8+
job_workflow_ref: DataDog/dd-trace-java/\.github/workflows/pin-system-tests\.yaml@refs/heads/.+
99

1010
permissions:
1111
contents: write

0 commit comments

Comments
 (0)