File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ issuer : https://token.actions.githubusercontent.com
2+
3+ subject : repo:DataDog/dd-trace-rs:ref:refs/heads/igor/versioning/release-dispatch
4+
5+ claim_pattern :
6+ event_name : (workflow_dispatch|push)
7+ ref : refs/heads/igor/versioning/release-dispatch
8+ ref_protected : " true"
9+ job_workflow_ref : DataDog/dd-trace-rs/.github/workflows/release-dispatch.yml@refs/heads/igor/versioning/release-dispatch
10+
11+ permissions :
12+ admin : write
Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ jobs:
2323 outputs :
2424 frozen : false
2525 steps :
26- # - name: Get token
27- # uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
28- # id: octo-sts
29- # with:
30- # scope: DataDog/dd-trace-rs
31- # policy: self.dispatch.create-pr
26+ - name : Get token
27+ uses : DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
28+ id : octo-sts
29+ with :
30+ scope : DataDog/dd-trace-rs
31+ policy : freeze-branch
3232 - name : Freeze branch
3333 run : |
34- # gh auth login --with-token ${{ steps.octo-sts.outputs.token }}
35- # gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
34+ echo " ${{ steps.octo-sts.outputs.token }}" | gh auth login --with-token
35+ # echo " ${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
3636
3737 gh api -X GET -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
3838 /repos/DataDog/dd-trace-rs/branches/${{ env.BRANCH_NAME }}/protection
4646 # -f '{"dismiss_stale_reviews": null, "require_code_owner_reviews": null, "required_approving_review_count": null}' \
4747 # -f '{"restrictions": null}' \
4848 echo "frozen=false" >> $GITHUB_OUTPUT
49- env :
50- # GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ # env:
50+ # GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
5251
5352 # make-release-pr:
5453 # permissions:
You can’t perform that action at this time.
0 commit comments