Skip to content

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

Open
drebrez wants to merge 1 commit into
masterfrom
alert-autofix-2
Open

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#119
drebrez wants to merge 1 commit into
masterfrom
alert-autofix-2

Conversation

@drebrez
Copy link
Copy Markdown
Member

@drebrez drebrez commented May 12, 2026

Potential fix for https://github.com/TiCodeX/SQLSchemaCompare/security/code-scanning/2

Add an explicit permissions block at the workflow root in .github/workflows/docker-tests.yml, just after the trigger section (on: block) and before jobs:.
For this workflow, the minimal and safest setting is:

  • contents: read

This preserves existing behavior (actions/checkout needs repository read access) while ensuring the token is not accidentally granted broader rights by repository/org defaults. No other logic or steps need to 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>
@drebrez drebrez marked this pull request as ready for review May 12, 2026 22:02
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