Skip to content

Commit

Permalink
fix: ci permissions changes
Browse files Browse the repository at this point in the history
  • Loading branch information
April-Bates-Dev committed Sep 12, 2023
1 parent ad50054 commit 7994bc8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
branches: [main]

permissions:
id-token: write
pull-requests: write
contents: read

env:
CI: true
WS_REGION: eu-west-2

jobs:
build_and_test_code_review_gpt:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -70,14 +75,17 @@ jobs:
cache: "npm"
cache-dependency-path: '**/package-lock.json'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN_STAGING }}

- name: 🚀 Deploy web-app
run: npm i && npm run lint-test && npm run deploy-staging

build_and_test_core:
runs-on: ubuntu-latest
env:
CI: true
AWS_REGION: eu-west-2

defaults:
run:
Expand Down

0 comments on commit 7994bc8

Please sign in to comment.