- Harden GitHub Actions workflows with minimum required permissions#56
Merged
- Harden GitHub Actions workflows with minimum required permissions#56
Conversation
Co-authored-by: mtracz <22484267+mtracz@users.noreply.github.com> Agent-Logs-Url: https://github.com/blumilksoftware/boilerplate/sessions/057cc3d8-e66b-4d3d-be78-0d02bce09c55
Copilot created this pull request from a session on behalf of
mtracz
March 25, 2026 19:24
View session
KarolZygadlo
previously approved these changes
Mar 26, 2026
Member
|
@copilot you forgot about workflows in src/.github/workflows dir. Fix it. |
Co-authored-by: mtracz <22484267+mtracz@users.noreply.github.com> Agent-Logs-Url: https://github.com/blumilksoftware/boilerplate/sessions/a5e73432-0c79-4546-88eb-697c56839a2d
Contributor
Author
Fixed in e9c346e — applied the same
|
kamilpiech97
approved these changes
Apr 1, 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.
All workflows were missing explicit
permissionsdeclarations, meaning each job ran with the default broad GITHUB_TOKEN scopes. Additionally,test-bash-script.ymlhad a shell injection vector via direct${{ github.head_ref }}interpolation in arunstep.Changes
Permissions (all workflows)
permissions: {}at workflow level (deny-all baseline)pull-requests: read—check-pr-title.yml(API read of PR title)contents: read— all other workflows (actions/checkout)This applies to workflows in both
.github/workflows/andsrc/.github/workflows/.Shell injection fix (
test-bash-script.yml)A branch name like
$(malicious)or; cmdwould execute in the runner shell:📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.