Skip to content

Commit 0b756e4

Browse files
authored
Update workflow to access aws for dependabot (#281)
* add aws access for dependabot pr * test * syntax tested * specify job names
1 parent f95fb36 commit 0b756e4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/analyze.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Analyze
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
88

99
jobs:
1010
Analyze:
@@ -45,7 +45,15 @@ jobs:
4545
needs: [Analyze]
4646
steps:
4747
- uses: actions/checkout@v4
48+
- name: Configure AWS credentials for dependabot
49+
if: ${{ github.actor == 'dependabot[bot]' }}
50+
uses: aws-actions/configure-aws-credentials@v4
51+
with:
52+
aws-access-key-id: ${{ secrets.DEPENDABOT_AWS_ACCESS_KEY_ID }}
53+
aws-secret-access-key: ${{ secrets.DEPENDABOT_AWS_SECRET_ACCESS_KEY }}
54+
aws-region: us-west-2
4855
- name: Configure AWS credentials
56+
if: ${{ github.actor != 'dependabot[bot]' }}
4957
uses: aws-actions/configure-aws-credentials@v4
5058
with:
5159
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)