Potential fix for code scanning alert no. 3: Workflow does not contain permissions by SemyonSinchenko · Pull Request #830 · graphframes/graphframes · GitHub
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

@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