Potential fix for code scanning alert no. 8: Workflow does not contain permissions#21
Open
evanwilson-arch wants to merge 9 commits intomainfrom
Open
Potential fix for code scanning alert no. 8: Workflow does not contain permissions#21evanwilson-arch wants to merge 9 commits intomainfrom
evanwilson-arch wants to merge 9 commits intomainfrom
Conversation
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.19.1 to 25.5.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 25.5.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 to e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa. - [Release notes](https://github.com/thollander/actions-comment-pull-request/releases) - [Commits](thollander/actions-comment-pull-request@65f9e5c...e4a76dd) --- updated-dependencies: - dependency-name: thollander/actions-comment-pull-request dependency-version: e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the actions-dependencies group with 3 updates: [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action), [preactjs/compressed-size-action](https://github.com/preactjs/compressed-size-action) and [google-github-actions/run-gemini-cli](https://github.com/google-github-actions/run-gemini-cli). Updates `lycheeverse/lychee-action` from 2.6.1 to 2.8.0 - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](lycheeverse/lychee-action@885c65f...8646ba3) Updates `preactjs/compressed-size-action` from 2.8.0 to 2.9.1 - [Release notes](https://github.com/preactjs/compressed-size-action/releases) - [Commits](preactjs/compressed-size-action@946a292...66325aa) Updates `google-github-actions/run-gemini-cli` from 0.1.11 to 0.1.21 - [Release notes](https://github.com/google-github-actions/run-gemini-cli/releases) - [Changelog](https://github.com/google-github-actions/run-gemini-cli/blob/main/CHANGELOG.md) - [Commits](google-github-actions/run-gemini-cli@a3bf790...9dbec29) --- updated-dependencies: - dependency-name: lycheeverse/lychee-action dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-dependencies - dependency-name: preactjs/compressed-size-action dependency-version: 2.9.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-dependencies - dependency-name: google-github-actions/run-gemini-cli dependency-version: 0.1.21 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 4.0.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@184bdaa...b45d80f) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [myrotvorets/set-commit-status-action](https://github.com/myrotvorets/set-commit-status-action) from 16037e056d73b2d3c88e37e393ff369047f70886 to 8595a0295138ef0f89657bff1c381470ac272aae. - [Release notes](https://github.com/myrotvorets/set-commit-status-action/releases) - [Commits](myrotvorets/set-commit-status-action@16037e0...8595a02) --- updated-dependencies: - dependency-name: myrotvorets/set-commit-status-action dependency-version: 8595a0295138ef0f89657bff1c381470ac272aae dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.2.0. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@5bef64f...b5d41d4) --- updated-dependencies: - dependency-name: actions/stale dependency-version: 10.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…n permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
milehighxworld-sys
approved these changes
Apr 4, 2026
evanwilson-arch
commented
Apr 4, 2026
Owner
Author
evanwilson-arch
left a comment
There was a problem hiding this comment.
Failed to fetch from the remote repository. See the Output window for more details.
evanwilson-arch
commented
Apr 4, 2026
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.
Potential fix for https://github.com/evanwilson-arch/gemini-cli/security/code-scanning/8
The fix is to explicitly restrict the
GITHUB_TOKENpermissions for thetestjob to the minimum it needs—here that’s just read access to repository contents. This is done by adding apermissions:block under thetestjob definition, analogous to the existingpermissions:block inpublish-preview, but withcontents: readinstead of any write scopes.Concretely, in
.github/workflows/release-promote.yml, locate thetestjob (line 156 onward). Immediately underruns-on: 'ubuntu-latest'(line 159), add apermissions:section withcontents: 'read'. No other functionality changes are required, and no new imports or steps are needed, because this only affects the implicit token permissions granted by GitHub to the job.Suggested fixes powered by Copilot Autofix. Review carefully before merging.