Skip to content

chore: Potential fix for code scanning alert no. 2: Workflow does not contain permissions#40

Merged
AndyRae merged 3 commits into
mainfrom
alert-autofix-2
Jun 29, 2026
Merged

chore: Potential fix for code scanning alert no. 2: Workflow does not contain permissions#40
AndyRae merged 3 commits into
mainfrom
alert-autofix-2

Conversation

@AndyRae

@AndyRae AndyRae commented Jun 29, 2026

Copy link
Copy Markdown
Member

Potential fix for https://github.com/Health-Informatics-UoN/workflows/security/code-scanning/2

Add an explicit permissions block in .github/workflows/pr-title-caller.yml at the workflow root (preferred here since there is only one job and it is a reusable workflow call).
Use least privilege: for a PR title check caller, contents: read is the minimal safe baseline and addresses CodeQL’s complaint without changing behavior of normal read operations.

File to change: .github/workflows/pr-title-caller.yml
Region: after on: trigger block and before jobs:.
No imports, methods, or dependencies are needed (YAML-only change).

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>
@AndyRae AndyRae changed the title Potential fix for code scanning alert no. 2: Workflow does not contain permissions chore: Potential fix for code scanning alert no. 2: Workflow does not contain permissions Jun 29, 2026
@AndyRae AndyRae marked this pull request as ready for review June 29, 2026 10:19
AndyRae and others added 2 commits June 29, 2026 11:20
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@AndyRae AndyRae merged commit ff44d94 into main Jun 29, 2026
4 checks passed
@AndyRae AndyRae deleted the alert-autofix-2 branch June 29, 2026 10:22
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.

1 participant