Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#830

Merged
SemyonSinchenko merged 1 commit into
mainfrom
alert-autofix-3
May 1, 2026
Merged

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#830
SemyonSinchenko merged 1 commit into
mainfrom
alert-autofix-3

Conversation

@SemyonSinchenko
Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/graphframes/graphframes/security/code-scanning/3

Add an explicit permissions block to the workflow so GITHUB_TOKEN is least-privileged by default.
Best fix here (without changing behavior) is to define workflow-level permissions with contents: read, which is sufficient for checkout and aligns with CodeQL’s suggested minimal baseline.

Where to change: .github/workflows/scala-publish.yml, near the top-level keys (after on: block, before jobs:).

What to add:

permissions:
  contents: read

No imports, methods, or extra definitions 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>
@SemyonSinchenko SemyonSinchenko marked this pull request as ready for review April 30, 2026 11:18
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.72%. Comparing base (a28a4e8) to head (01b56a6).
⚠️ Report is 7 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #830      +/-   ##
==========================================
+ Coverage   80.75%   81.72%   +0.97%     
==========================================
  Files          78       78              
  Lines        4421     4399      -22     
  Branches      543      551       +8     
==========================================
+ Hits         3570     3595      +25     
+ Misses        851      804      -47     

☔ View full report in Codecov by Sentry.
📢 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.

@SemyonSinchenko SemyonSinchenko merged commit b08b445 into main May 1, 2026
20 checks passed
@SemyonSinchenko SemyonSinchenko deleted the alert-autofix-3 branch May 1, 2026 08:04
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.

3 participants