Repository navigation
ci: restrict GITHUB_TOKEN to least privilege and add security policy - #1
fablab503-collab wants to merge 4 commits into
Conversation
Default the build workflow to contents: read and grant contents: write only to the two jobs that upload release assets. The issues workflow uses its own COOLDOWN_TOKEN, so it needs no GITHUB_TOKEN scopes. Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
|
Build Sysroot (arm64, visionos) fails, and the cause is not this PR's change.
Likely root cause (not verified, since it needs a macOS runner): on the - pip3 install --break-system-packages --user six pyparsing pyyaml setuptools distlib mako
+ python3 -m pip install --break-system-packages --user six pyparsing pyyaml setuptools distlib makoNo re-run yet: the run is still in progress, and this failure is deterministic. Generated by Claude Code |
|
Correction to my earlier comment: the real cause is that the Generated by Claude Code |
The configuration job emits the runner as a quoted JSON string
('macos-26') for fromJSON() in runs-on, but Install Requirements
compared that raw string to env.RUNNER_IMAGE (macos-26). They never
matched, so on GitHub-hosted runners the step was always skipped and
build_dependencies.sh failed with "'six' not found". Self-hosted
runners still parse to an array and keep skipping the step.
Assisted-by: Claude:claude-opus-5-5
With Install Requirements now running on hosted runners, the sysroot build gets to Mesa's host build, which fails at meson.build:2092 with 'Dependency "SPIRV-Tools" not found'. llvmspirvlib is already found via Homebrew's pkg-config, so add the matching spirv-tools formula. Assisted-by: Claude:claude-opus-5-5
|
I copied the two CI fixes from #2 into this PR (7ecc334, 038fccc). On #2, 10 of the 11 Generated by Claude Code |
|
Heads-up: with the ported sysroot fix, this PR's Generated by Claude Code |
Summary
build.yml: the default token is nowcontents: read. Onlypackage-iosandpackage-macgetcontents: write, because they upload release assets.issues.yml:permissions: {}. The cooldown action uses its ownCOOLDOWN_TOKENand doesn't need the default token.SECURITY.mdwith the hardening baselines.Audit notes (no change needed)
base64 --decodesteps write secrets to files (-o). They don't print them to the logs.pull_request_targetor wildcard branch triggers. Fork PRs get a read-only token and no secrets.IS_SELF_HOSTED_RUNNERis set, fork PRs would run on the self-hosted runner.Generated by Claude Code