Skip to content

Commit

Permalink
ci: fiddle permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Jan 4, 2024
1 parent 4faf6f4 commit 06ed5f8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

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

concurrency:
group: "pages"
cancel-in-progress: true
cancel-in-progress: false

jobs:
test:
Expand Down Expand Up @@ -56,10 +62,6 @@ jobs:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 06ed5f8

Please sign in to comment.