Skip to content

Commit 197f7e9

Browse files
committed
Clean workflow and trust policy
1 parent 387d37d commit 197f7e9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
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/(master|test/v.+)
3+
subject_pattern: repo:DataDog/dd-trace-java:ref:refs/heads/(master|release/v.+)
44

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

1010
permissions:
1111
contents: write

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ on:
1313
jobs:
1414
pin-system-tests:
1515
name: "Pin system tests"
16-
# CHANGE BACK TO release/v*
17-
if: github.event_name != 'create' || startsWith(github.ref, 'refs/heads/test/v')
16+
if: github.event_name != 'create' || startsWith(github.ref, 'refs/heads/release/v')
1817
runs-on: ubuntu-latest
1918
permissions:
20-
contents: write # may not be needed
19+
contents: write
2120
id-token: write # Required for OIDC token federation
2221
steps:
2322
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
@@ -96,12 +95,10 @@ jobs:
9695
if: steps.check-changes.outputs.commit_changes == 'true' && steps.check-branch.outputs.creating_new_branch == 'true'
9796
env:
9897
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
99-
# REMOVE DRAFT
10098
run: |
10199
gh pr create --title "Pin system tests for release branch" \
102100
--base ${{ steps.define-base-branch.outputs.base_branch }} \
103101
--head ${{ steps.define-branch.outputs.branch }} \
104102
--label "tag: dependencies" \
105103
--label "tag: no release notes" \
106104
--body "This PR pins the system-tests reference for the release branch." \
107-
--draft

0 commit comments

Comments
 (0)