Skip to content

Commit 3c43b8e

Browse files
committed
Refine trust policy
1 parent 4f539e2 commit 3c43b8e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 4 additions & 4 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/(master|test/v.+)
44

55
claim_pattern:
6-
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/.+
6+
event_name: (create|workflow_dispatch)
7+
ref: refs/heads/(master|test/v.+)
8+
job_workflow_ref: DataDog/dd-trace-java/\.github/workflows/pin-system-tests\.yaml@refs/heads/(master|test/v.+)
99

1010
permissions:
1111
contents: write

.github/workflows/pin-system-tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
jobs:
1414
pin-system-tests:
1515
name: "Pin system tests"
16+
# CHANGE BACK TO release/v*
1617
if: github.event_name != 'create' || startsWith(github.ref, 'refs/heads/test/v')
1718
runs-on: ubuntu-latest
1819
permissions:
@@ -95,7 +96,7 @@ jobs:
9596
if: steps.check-changes.outputs.commit_changes == 'true' && steps.check-branch.outputs.creating_new_branch == 'true'
9697
env:
9798
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
98-
# base may need to be `release/v*`
99+
# REMOVE DRAFT
99100
run: |
100101
gh pr create --title "Pin system tests for release branch" \
101102
--base ${{ steps.define-base-branch.outputs.base_branch }} \

0 commit comments

Comments
 (0)