Skip to content

Commit

Permalink
ci: set explicit permissions for jobs (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv authored Dec 31, 2024
1 parent c4ec31c commit 3432f7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -60,6 +62,8 @@ jobs:
deploy-to-cloudflare-pages-staging:
name: Deploy to Cloudflare Pages Staging
runs-on: ubuntu-latest
permissions:
contents: read
needs:
- build

Expand Down Expand Up @@ -102,6 +106,8 @@ jobs:
deploy-to-cloudflare-pages:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
permissions:
contents: read
needs:
- build
if: github.event_name == 'release'
Expand Down

0 comments on commit 3432f7c

Please sign in to comment.