Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/chainguard/self.pin-system-tests.create-pr.sts.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
issuer: https://token.actions.githubusercontent.com

subject_pattern: repo:DataDog/dd-trace-java:ref:refs/heads/(master|test/v.+)
subject_pattern: repo:DataDog/dd-trace-java:ref:refs/heads/(master|release/v.+)

claim_pattern:
event_name: (create|workflow_dispatch)
ref: refs/heads/(master|test/v.+)
job_workflow_ref: DataDog/dd-trace-java/\.github/workflows/pin-system-tests\.yaml@refs/heads/(master|test/v.+)
ref: refs/heads/(master|release/v.+)
job_workflow_ref: DataDog/dd-trace-java/\.github/workflows/pin-system-tests\.yaml@refs/heads/(master|release/v.+)

permissions:
contents: write
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/pin-system-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ on:
description: 'The minor release branch name (e.g. release/v1.54.x)'
required: true
type: string
# run workflow when a release branch is created
# run workflow when any branch is created
create:

jobs:
# TODO: Remove this job after confirming the github.ref when a release branch is created
print-github-ref:
name: "Print full github.ref"
runs-on: ubuntu-latest
steps:
- name: Print github.ref
run: |
echo "github.ref: ${{ github.ref }}"

pin-system-tests:
name: "Pin system tests"
if: github.event_name != 'create' || contains(github.ref, 'test/v')
if: github.event_name != 'create' || contains(github.ref, 'release/v')
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -25,11 +34,6 @@ jobs:
scope: DataDog/dd-trace-java
policy: self.pin-system-tests.create-pr

# temporary
- name: Print github.ref
run: |
echo "github.ref: ${{ github.ref }}"

- name: Define base branch
id: define-base-branch
run: |
Expand Down