chore(github-actions): update reqstool/.github digest to e1d6719#47
chore(github-actions): update reqstool/.github digest to e1d6719#47renovate[bot] merged 1 commit intomainfrom
Conversation
| jobs: | ||
| check: | ||
| uses: reqstool/.github/.github/workflows/check-semantic-pr.yml@33502e31f66fb7e982f48f50e3c6c29b0410a017 # main 2026-03-07 | ||
| uses: reqstool/.github/.github/workflows/check-semantic-pr.yml@e1d67194373e4da7ccfdf400f46201f18ca14f23 # main 2026-03-07 |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 days ago
In general, to fix this problem you explicitly declare a permissions block either at the root of the workflow (to apply to all jobs) or under the specific job that needs it. You grant only the minimal scopes required, commonly starting with contents: read and then adding more granular write scopes if needed. This ensures the GITHUB_TOKEN is not implicitly granted broad default permissions.
For this workflow, the safest, non‑breaking fix is to add a root‑level permissions block just below the name: line and before the on: key. Since we don’t see any steps here and the logic lives in the referenced reusable workflow, a minimal and safe default is contents: read, which is equivalent to a read‑only token for repository contents. If the reusable workflow requires more (for example, pull-requests: write), that can be added later in that workflow or by expanding this block, but adding contents: read now satisfies CodeQL and documents the intended least-privilege baseline without changing current behavior in most setups.
Concretely:
- Edit
.github/workflows/check-semantic-pr.yml. - Insert a
permissions:mapping after line 1 (name: Check Semantic PR). - Set at least
contents: readunderpermissions.
No extra imports or external libraries are needed.
| @@ -1,4 +1,6 @@ | ||
| name: Check Semantic PR | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| pull_request: | ||
| types: [opened, edited, synchronize, reopened] |
This PR contains the following updates:
33502e3→e1d6719Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.