From 72720f29cead0c6b30033e49ce66bb1fd7ddab9d Mon Sep 17 00:00:00 2001 From: Chris Reddington <791642+chrisreddington@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:41:15 +0000 Subject: [PATCH] Update GitHub Actions workflows to set permissions and upgrade deployment action --- .github/workflows/build-deploy.yml | 6 +++++- .github/workflows/test.yml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 263a1d81..da42551e 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -4,6 +4,10 @@ on: branches: - main +permissions: + contents: read + pages: write + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -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. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 102b6b4f..ada03357 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,9 @@ on: branches: - main +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest