From 67986a1706ec2e8aaa2dcfe00e04d64235586eea Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Fri, 12 Apr 2024 19:29:11 +0200 Subject: [PATCH] Fixed update-pages permissions --- .github/workflows/gradle.yml | 10 ++++++++++ .github/workflows/pages.yml | 12 ------------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5a76c019..cf75b13a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -36,6 +36,16 @@ jobs: update-pages: needs: test + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write + # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. + # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. + concurrency: + group: "pages" + cancel-in-progress: false uses: ./.github/workflows/pages.yml jacoco: diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c0ce9ac9..b6bc1e70 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -7,18 +7,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - jobs: # Single deploy job since we're just deploying deploy: