Skip to content

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

Merged
drebrez merged 2 commits into
masterfrom
alert-autofix-2
May 18, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#119
drebrez merged 2 commits 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
@github-actions
Copy link
Copy Markdown

Unit Test Results

110 tests  ±0   110 ✅ ±0   0s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 54d3afe. ± Comparison against base commit ff524cc.

@github-actions
Copy link
Copy Markdown

MariaDB Test Results

155 tests  ±0   155 ✅ ±0   1m 50s ⏱️ -4s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 54d3afe. ± Comparison against base commit ff524cc.

@github-actions
Copy link
Copy Markdown

MySQL Test Results

93 tests  ±0   93 ✅ ±0   1m 37s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 54d3afe. ± Comparison against base commit ff524cc.

@github-actions
Copy link
Copy Markdown

PostgreSQL Test Results

216 tests  ±0   216 ✅ ±0   6m 52s ⏱️ +2s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 54d3afe. ± Comparison against base commit ff524cc.

@github-actions
Copy link
Copy Markdown

MicrosoftSQL Test Results

212 tests  ±0   212 ✅ ±0   9m 47s ⏱️ -5s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 54d3afe. ± Comparison against base commit ff524cc.

@drebrez drebrez merged commit a5c7dd1 into master May 18, 2026
16 checks passed
@drebrez drebrez deleted the alert-autofix-2 branch May 18, 2026 19:19
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