Skip to content

Commit

Permalink
Set permissions on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
depsypher committed Jun 21, 2024
1 parent 27956f7 commit 43764ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ on:
pull_request:
branches: [ "main" ]

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 43764ad

Please sign in to comment.