Skip to content

Commit

Permalink
add permissions to release
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwolenpbc authored Oct 2, 2024
1 parent 25ab282 commit a28631f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
types: [released]
push:

permissions:
contents: read
id-token: write

jobs:
# Promote and Deploy to prod-test
promote-prod-test-api:
Expand All @@ -23,9 +27,6 @@ jobs:

deploy-prod-test-api:
needs: promote-prod-test-api
permissions:
contents: read
id-token: write
uses: ./.github/workflows/deploy.yml
with:
environment: prod-test
Expand Down Expand Up @@ -88,10 +89,7 @@ jobs:

deploy-sbx-api:
needs: promote-sbx-api
uses: ./.github/workflows/deploy.yml
permissions:
contents: read
id-token: write
uses: ./.github/workflows/deploy.yml
with:
environment: sbx
module: api
Expand All @@ -100,9 +98,6 @@ jobs:
deploy-sbx-worker:
needs: promote-sbx-worker
uses: ./.github/workflows/deploy.yml
permissions:
contents: read
id-token: write
with:
environment: sbx
module: worker
Expand Down

0 comments on commit a28631f

Please sign in to comment.