Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: [main, develop]

permissions: read-all

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
types: [completed]
branches: [main]

permissions: read-all

concurrency:
group: codecov-${{ github.event.workflow_run.id }}
cancel-in-progress: true
Expand All @@ -14,9 +16,6 @@ jobs:
upload-coverage:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
permissions:
contents: read
actions: read

steps:
- name: Checkout code
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ on:
branches: [main]
workflow_dispatch:

permissions:
contents: write
pull-requests: write
id-token: write
permissions: read-all

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
permissions:
security-events: write
id-token: write
Comment on lines 14 to 16
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore read scopes in scorecard job permissions

This job-level permissions block now grants only security-events and id-token; in GitHub Actions, once a job declares specific permissions, unspecified scopes are treated as none, so contents/actions read access from the workflow default is not retained. That can break actions/checkout and SARIF upload behavior when this workflow runs in private mirrors/forks (or if visibility changes), because those steps rely on repository/actions read access.

Useful? React with 👍 / 👎.

contents: read
actions: read
steps:
- name: "Checkout code"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
Expand Down