Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuran-deriv committed Jan 29, 2024
1 parent 6c3b618 commit 1097eca
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/generate-preview-link.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: Generate preview link

permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write

on:
workflow_run:
workflows: ['Pre-generate preview link']
Expand All @@ -27,6 +19,12 @@ jobs:
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
permissions:
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write
steps:
- name: Checkout to repo
uses: actions/checkout@v3
Expand Down

0 comments on commit 1097eca

Please sign in to comment.