Skip to content

Commit

Permalink
ci: scope e2e test permissions to job rather than whole workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
necipallef committed Sep 18, 2024
1 parent 35837fd commit df5af77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy_test_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- '**.md'
- 'cloudformation/*.yml'

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
deploy-test-branch:
name: Deploy test branch
Expand Down Expand Up @@ -71,6 +67,9 @@ jobs:

run-e2e-for-test-branch:
needs: [deploy-test-branch]
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
name: Run e2e for test branch
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit df5af77

Please sign in to comment.