Repository navigation
fix(ci): scope GITHUB_TOKEN permissions per job (#15) - #16
Open
hf-security-analysis[bot] wants to merge 2 commits into
Open
hf-security-analysis[bot] wants to merge 2 commits into
hf-security-analysis[bot] wants to merge 2 commits into
Conversation
Bumps the actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) | `22` | `23` | | [cachix/cachix-action](https://github.com/cachix/cachix-action) | `5f2d7c5294214f71b873db4b969586b980625e71` | `38b082610b782e7e93e209c35fd730d399dee866` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `8.0.1` | `8.0.2` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` | | [actions/setup-node](https://github.com/actions/setup-node) | `6.4.0` | `7.1.0` | Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@9c091bb...3d3c42e) Updates `DeterminateSystems/nix-installer-action` from 22 to 23 - [Release notes](https://github.com/determinatesystems/nix-installer-action/releases) - [Commits](DeterminateSystems/nix-installer-action@ef8a148...3138316) Updates `cachix/cachix-action` from 5f2d7c5294214f71b873db4b969586b980625e71 to 38b082610b782e7e93e209c35fd730d399dee866 - [Release notes](https://github.com/cachix/cachix-action/releases) - [Changelog](https://github.com/cachix/cachix-action/blob/master/RELEASE.md) - [Commits](cachix/cachix-action@5f2d7c5...38b0826) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@043fb46...cf430e0) Updates `actions/download-artifact` from 8.0.1 to 8.0.2 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@3e5f45b...9000827) Updates `actions/setup-python` from 6.3.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@ece7cb0...5fda3b9) Updates `actions/setup-node` from 6.4.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@48b55a0...949feb2) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: DeterminateSystems/nix-installer-action dependency-version: '23' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: cachix/cachix-action dependency-version: 38b082610b782e7e93e209c35fd730d399dee866 dependency-type: direct:production dependency-group: actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/download-artifact dependency-version: 8.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/github_actions/actions-c20c00cd42
branch
from
October 27, 2026 19:35
bd4abcd to
3d3196e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated hardening of the workflow files flagged on #15: job permissions only.
Each kind of fix has its own pull request, from a
security/workflow-hardening/pr-15-*branch, and any of them can be merged first: the others are rebuilt on top when this one lands.Warning
This changes when the workflow runs and what it can reach. Both triggers and permissions were rewritten in
.github/workflows/build-pr-dispatch.yaml,.github/workflows/build-windows.yaml,.github/workflows/build.yaml,.github/workflows/nix_fmt.yaml. Read the diff before merging — either one can change what the workflow is able to do.Targets
dependabot/github_actions/actions-c20c00cd42. Files changed, and what changed them:.github/workflows/build-pr-dispatch.yaml— job permissions.github/workflows/build-windows.yaml— job permissions.github/workflows/build.yaml— job permissions.github/workflows/nix_fmt.yaml— job permissionsFixed by this PR:
excessive-permissions(zizmor) — .github/workflows/build-pr-dispatch.yaml:11excessive-permissions(zizmor) — .github/workflows/nix_fmt.yaml:1excessive-permissions(zizmor) — .github/workflows/nix_fmt.yaml:11excessive-permissions(zizmor) — .github/workflows/build-pr-dispatch.yaml:12excessive-permissions(zizmor) — .github/workflows/build-windows.yaml:63excessive-permissions(zizmor) — .github/workflows/build.yaml:63This does not fix everything. 4 further finding(s) (3 high, 1 medium) need a decision this bot should not make for you. They are in the security channel with their locations — deliberately not repeated here, since this repository may be public and they are not fixed yet.
Permissions
.github/workflows/build-pr-dispatch.yamldispatchactions: write,contents: read,statuses: write.github/workflows/build-windows.yamlset-running-statusstatuses: writebuild-kernelcontents: readreport-statusstatuses: write.github/workflows/build.yamlsetupcontents: read,statuses: writebuild-kernelcontents: read,id-token: writebuild-ci-testcontents: readtest-kernel-gpu{}— nothingreport-statuscontents: read,issues: write,statuses: write.github/workflows/nix_fmt.yamlbuildcontents: readnix fmt -- --cirun locally and use no repository token scopes..github/workflows/pr-comment-build.yaml.github/workflows/security-audit.ymlsecurity-auditcontents: read,pull-requests: writegh pr comment, which needs pull-requests: write (this also coversgh pr diff); actions/checkout needs contents: read. The existing issues: write grant was dropped because no step touches issues, but ifgh pr commentfails without it, re-add it.Anything not listed above keeps the permissions it had. To measure a job this could not read, add
GitHubSecurityLab/actions-permissions/monitorto it and run the workflow — it reports the minimum the run actually used.Claude decided the scopes each job needs; the YAML was edited by code. Read the table below before merging.