@@ -25,12 +25,12 @@ jobs:
2525 !contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
2626 !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
2727 github.event_name == 'schedule'
28+ permissions :
29+ id-token : write
30+ contents : read
2831 uses : ./.github/workflows/reusable-pre-commit.yml
2932 with :
3033 enable-commit-changes : true
31- secrets :
32- PIPELINE_GITHUB_APP_ID : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
33- PIPELINE_GITHUB_APP_PRIVATE_KEY : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
3434
3535 test :
3636 if : >
4343 node-versions : ' ["16", "18"]'
4444 platforms : ' ["ubuntu-latest"]'
4545 test-script : ' ./run-tests.sh'
46- secrets :
47- PIPELINE_GITHUB_APP_ID : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
48- PIPELINE_GITHUB_APP_PRIVATE_KEY : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
4946
5047 examples :
5148 if : >
@@ -64,15 +61,16 @@ jobs:
6461 needs :
6562 - test
6663 - examples
64+ permissions :
65+ id-token : write
6766 steps :
6867 - name : Get GitHub App token
6968 if : github.event_name == 'pull_request'
7069 id : get_token
71- uses : actions/create-github-app-token@v1
70+ uses : DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4
7271 with :
73- app-id : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
74- private-key : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
75- repositories : datadog-api-spec
72+ scope : DataDog/datadog-api-spec
73+ policy : datadog-api-client-typescript.test.post-status
7674 - name : Post status check
7775 uses : DataDog/github-actions/post-status-check@v2
7876 with :
0 commit comments