Skip to content

Commit

Permalink
Add permissions to action
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbrezovec authored Feb 15, 2024
1 parent 4913a45 commit 47adda9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Cancel any in-progress job or run
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
Expand All @@ -20,9 +25,6 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 47adda9

Please sign in to comment.