Skip to content

chore: Fix workflow does not contain permissions - #73

Merged
gigi81 merged 1 commit into
mainfrom
alert-autofix-5
Sep 22, 2026
Merged

gigi81 merged 1 commit into
mainfrom
alert-autofix-5

Conversation

@gigi81

@gigi81 gigi81 commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/gigi81/dbdeploy/security/code-scanning/5

Add an explicit workflow-level permissions block near the top of .github/workflows/integration-tests.yml so all jobs inherit least-privilege token access by default.

Best single fix: insert:

permissions:
  contents: read

right after the concurrency section (or anywhere at workflow root). This is sufficient for checkout/read operations and documents intended minimal access. No imports, methods, or dependencies are needed.

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>
@gigi81 gigi81 changed the title Potential fix for code scanning alert no. 5: Workflow does not contain permissions chore: Fix workflow does not contain permissions Sep 22, 2026
@gigi81
gigi81 marked this pull request as ready for review September 22, 2026 20:26
@gigi81
gigi81 merged commit 168ff6f into main Sep 22, 2026
11 of 12 checks passed
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.03%. Comparing base (0596db4) to head (d7de6ab).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #73   +/-   ##
=======================================
  Coverage   85.03%   85.03%           
=======================================
  Files         136      136           
  Lines        6330     6330           
  Branches      902      902           
=======================================
  Hits         5383     5383           
  Misses        730      730           
  Partials      217      217           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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