Skip to content

Commit

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

permissions:
contents: write
actions: write

jobs:
dispatch-custom-event:
if: github.event.deployment_status.state == 'success'
Expand All @@ -18,7 +14,7 @@ jobs:
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ github.token }}" \
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_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 e4cca33

Please sign in to comment.