Skip to content

- Validate and add minimum permissions to GitHub Actions workflows#36

Merged
krzysztofkozyra021 merged 1 commit intomainfrom
copilot/validate-github-actions-workflows
Mar 26, 2026
Merged

- Validate and add minimum permissions to GitHub Actions workflows#36
krzysztofkozyra021 merged 1 commit intomainfrom
copilot/validate-github-actions-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

Summary

Added explicit permissions blocks to all three GitHub Actions workflows, restricting the GITHUB_TOKEN to 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

Workflow Added permissions
check-pr-title.yml pull-requests: read
test-and-lint-js.yml contents: read
test-and-lint-php.yml contents: read

Security notes

  • All three workflows trigger on pull_request and only read repository contents or PR metadata — no write access is needed.
  • Pinned action SHAs and timeout-minutes were already present; no changes were needed there.
  • CodeQL scan returned 0 alerts on the changes.

Copilot AI requested a review from mtracz March 25, 2026 14:22
@mtracz mtracz marked this pull request as ready for review March 25, 2026 14:33
@mtracz mtracz requested a review from a team as a code owner March 25, 2026 14:33
@krzysztofkozyra021 krzysztofkozyra021 merged commit 9c623c4 into main Mar 26, 2026
2 checks passed
@krzysztofkozyra021 krzysztofkozyra021 deleted the copilot/validate-github-actions-workflows branch March 26, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants