Skip to content

Commit

Permalink
give permissions to the workflow, hopefully fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Aug 25, 2024
1 parent 856e036 commit 5c81d86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
deployments: write

jobs:
build:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -101,7 +104,7 @@ jobs:
name: Create GitHub deployment
id: deployment
with:
token: '${{ secrets.PAT_FOR_DEPLOYMENTS }}'
token: '${{ github.token }}'
environment-url: https://www.arun.blog
environment: Production

Expand All @@ -117,7 +120,7 @@ jobs:
if: success()
uses: chrnorm/deployment-status@v2
with:
token: '${{ secrets.PAT_FOR_DEPLOYMENTS }}'
token: '${{ github.token }}'
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'success'
Expand All @@ -126,7 +129,7 @@ jobs:
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: '${{ secrets.PAT_FOR_DEPLOYMENTS }}'
token: '${{ github.token }}'
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'failure'

0 comments on commit 5c81d86

Please sign in to comment.