Skip to content

Commit

Permalink
Update workflow to access aws for dependabot (#281)
Browse files Browse the repository at this point in the history
* add aws access for dependabot pr

* test

* syntax tested

* specify job names
  • Loading branch information
rugeli authored Aug 22, 2024
1 parent f95fb36 commit 0b756e4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Analyze

on:
push:
branches:
- main
pull_request:
on:
push:
branches:
- main
pull_request:

jobs:
Analyze:
Expand Down Expand Up @@ -45,7 +45,15 @@ jobs:
needs: [Analyze]
steps:
- uses: actions/checkout@v4
- name: Configure AWS credentials for dependabot
if: ${{ github.actor == 'dependabot[bot]' }}
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.DEPENDABOT_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEPENDABOT_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Configure AWS credentials
if: ${{ github.actor != 'dependabot[bot]' }}
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 0b756e4

Please sign in to comment.