Skip to content

Commit

Permalink
fix: add permissions in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Dec 12, 2024
1 parent bc66413 commit e0b3380
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
# Allows to run the workflow manually from the Actions tab
workflow_dispatch:

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

jobs:
deploy-app:
name: Deploy to dev
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
repository_dispatch:
types: [production-deployment]

# Allows to run the workflow manually from the Actions tab
workflow_dispatch:

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

jobs:
deploy-app:
name: Deploy to production
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
repository_dispatch:
types: [staging-deployment]

# Allows to run the workflow manually from the Actions tab
workflow_dispatch:

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

jobs:
deploy-app:
name: Deploy to stage
Expand Down

0 comments on commit e0b3380

Please sign in to comment.