Skip to content

Commit

Permalink
Update GitHub Actions workflows to set permissions and upgrade deploy…
Browse files Browse the repository at this point in the history
…ment action
  • Loading branch information
chrisreddington authored Nov 25, 2024
1 parent b8aff87 commit 72720f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches:
- main

permissions:
contents: read
pages: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -26,7 +30,7 @@ jobs:
run: touch ./out/.nojekyll

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
uses: JamesIves/github-pages-deploy-action@62fec3add6773ec5dbbf18d2ee4260911aa35cf4 # v4.6.9
with:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 72720f2

Please sign in to comment.