diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f6343890..7bbce8ad 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,8 @@ on: schedule: - cron: '30 18 * * 2' +permissions: {} + jobs: analyze: name: Analyze diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ae4404f1..9424103d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,11 +5,7 @@ on: branches: ["main"] workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write +permissions: {} # 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. @@ -21,6 +17,9 @@ jobs: # Build job build: runs-on: ubuntu-latest + permissions: + contents: read + pages: read steps: - name: Checkout uses: actions/checkout@v4 @@ -50,6 +49,9 @@ jobs: # Deployment job deploy: + permissions: + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e02d405b..a1ab5f1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,10 @@ on: branches: [ main ] workflow_dispatch: +# Release creation and asset uploads use PERSONAL_ACCESS_TOKEN. +permissions: + contents: read + jobs: publish: runs-on: ubuntu-latest