Skip to content

Commit b6b3ce9

Browse files
Set id-token: write permissions and use the created token in the checkout
1 parent 0ed0d05 commit b6b3ce9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/merge-upstream-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
create_upstream_pr:
1212
permissions:
1313
contents: write
14-
actions: write
14+
id-token: write
1515
runs-on: ubuntu-latest
1616
steps:
1717
# TokenPolicy defined at https://github.com/elastic/catalog-info/tree/main/resources/github-token-policies/token-policy-opentelemetry-demo-merge-upstream.yaml
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
ref: main
2828
fetch-depth: 0
29+
token: ${{ steps.get_token.outputs.token }}
2930

3031
- name: Configure git user
3132
uses: elastic/oblt-actions/git/setup@v1

0 commit comments

Comments
 (0)