Skip to content

ENG: Update GitHub Workflow Permissions - #173

Merged
zlarsen merged 1 commit into
mainfrom
alert-autofix-1
Aug 31, 2026
Merged

zlarsen merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@zlarsen

@zlarsen zlarsen commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/smartrent/solicit/security/code-scanning/1

Add an explicit permissions block to the workflow so GITHUB_TOKEN is constrained to least privilege.
Best fix here: define at the workflow root (applies to all jobs unless overridden) with contents: read, which is sufficient for checkout and the shown CI tasks.

File to edit: .github/workflows/ci.yml
Change location: after the on: trigger block and before env: (or anywhere valid at root level).
Needed additions: YAML key:

  • permissions:
    • contents: read

No imports, methods, or dependencies are required.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Zach Larsen <zachariahlarsen@gmail.com>
@zlarsen zlarsen changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions ENG: Update GitHub Workflow Permissions Aug 31, 2026
@zlarsen
zlarsen marked this pull request as ready for review August 31, 2026 16:36

@TheNorthRemembers TheNorthRemembers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work :shipit:

@zlarsen
zlarsen merged commit 56856b9 into main Aug 31, 2026
5 checks passed
@zlarsen
zlarsen deleted the alert-autofix-1 branch August 31, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants