Skip to content

Commit

Permalink
Grant permissions for workflow callers
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 15, 2024
1 parent 2c2d245 commit d5e961e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/sst.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- 'main'
- 'release/**'


permissions:
id-token: write
contents: read

jobs:
dev:
uses: ./.github/workflows/sst.deploy.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sst.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'

permissions:
id-token: write
contents: read

jobs:
prod:
uses: ./.github/workflows/sst.deploy.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sst.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
tags-ignore:
- '*'

permissions:
id-token: write
contents: read

jobs:
staging:
uses: ./.github/workflows/sst.deploy.yml
Expand Down

0 comments on commit d5e961e

Please sign in to comment.