Safe mechanical fixes — the diff changes only the flagged lines.
.github/workflows/ci.yml GHA033 Blanket write-all permissions per OSSF Scorecard — Token-Permissions, GitHub — Automatic token authentication@@ -1,7 +1,8 @@ name: CI on: push: -permissions: write-all +permissions: + contents: read jobs: build: runs-on: ubuntu-latest
build) — Pin `actions/checkout` to a full 40-char commit SHA. per OSSF Scorecard — Pinned-Dependencies, GitHub — Using third-party actionsbuild) — Pin the action to a full commit SHA instead of a tag/branch. per OSSF Scorecard — Pinned-Dependencies, GitHub — Using third-party actions| Rule | Title | File | Detail |
|---|---|---|---|
| GHA022 | Job without timeout-minutes | .github/workflows/ci.yml | Job "build" does not specify timeout-minutes. Consider adding a timeout to prevent hung workflows. |