Skip to content

Commit

Permalink
Fix OIDC permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis-Softwire committed Jan 7, 2025
1 parent 4f4e69a commit cf0ee66
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
AWS_REGION: "eu-west-2"
steps:
Expand All @@ -29,14 +32,14 @@ jobs:
- run: npm ci
- run: npm run build

- name: Run gradle `check` to run linting and tests
env:
ONE_LOGIN_PRIVATE_KEY: |
${{ secrets.ONE_LOGIN_PRIVATE_KEY }}
ONE_LOGIN_PUBLIC_KEY: |
${{ secrets.ONE_LOGIN_PUBLIC_KEY }}
EMAILNOTIFICATIONS_APIKEY: ${{ secrets.NOTIFY_KEY }}
run: ./gradlew clean check --no-daemon
# - name: Run gradle `check` to run linting and tests
# env:
# ONE_LOGIN_PRIVATE_KEY: |
# ${{ secrets.ONE_LOGIN_PRIVATE_KEY }}
# ONE_LOGIN_PUBLIC_KEY: |
# ${{ secrets.ONE_LOGIN_PUBLIC_KEY }}
# EMAILNOTIFICATIONS_APIKEY: ${{ secrets.NOTIFY_KEY }}
# run: ./gradlew clean check --no-daemon

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
Expand Down

0 comments on commit cf0ee66

Please sign in to comment.