Skip to content

Commit

Permalink
fix: update GitHub Actions workflow to use GitHub token for authoriza…
Browse files Browse the repository at this point in the history
…tion and set permissions
  • Loading branch information
Paranoia8972 committed Jan 2, 2025
1 parent 16b5675 commit 52cd062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deployment-successfull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
deployment_status:
workflow_dispatch:

permissions:
contents: write
actions: write

jobs:
dispatch-custom-event:
if: github.event.deployment_status.state == 'success'
Expand All @@ -14,7 +18,7 @@ jobs:
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Authorization: Bearer ${{ github.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/Paranoia8972/Paranoia8972/dispatches \
-d '{"event_type":"vercel-deployment-success"}'

0 comments on commit 52cd062

Please sign in to comment.