- Validate and add minimum permissions to GitHub Actions workflows#36
Merged
krzysztofkozyra021 merged 1 commit intomainfrom Mar 26, 2026
Merged
Conversation
Co-authored-by: mtracz <22484267+mtracz@users.noreply.github.com> Agent-Logs-Url: https://github.com/blumilksoftware/hops-web/sessions/0c0b3019-e48f-4c45-98ac-c0b313b3a351
Copilot created this pull request from a session on behalf of
mtracz
March 25, 2026 14:22
View session
EwelinaSkrzypacz
approved these changes
Mar 26, 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.
Summary
Added explicit
permissionsblocks to all three GitHub Actions workflows, restricting theGITHUB_TOKENto the minimum required scopes. Without explicit permissions, GitHub grants broader defaults (read on all scopes, write on some), which increases the blast radius of a compromised action or supply-chain attack.Changes
check-pr-title.ymlpull-requests: readtest-and-lint-js.ymlcontents: readtest-and-lint-php.ymlcontents: readSecurity notes
pull_requestand only read repository contents or PR metadata — no write access is needed.timeout-minuteswere already present; no changes were needed there.