Skip to content

Commit c6f57f9

Browse files
Add OIDC token request step in CI/CD workflow
Add step to request GitHub OIDC token in CI/CD workflow
1 parent 5191b93 commit c6f57f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
steps:
4545
- name: Checkout code
4646
uses: actions/checkout@v3
47+
- name: Test OIDC token
48+
run: |
49+
echo "Requesting GitHub OIDC token..."
50+
curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
51+
"$ACTIONS_ID_TOKEN_REQUEST_URL"
4752

4853
- name: Setup Node.js
4954
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)