Potential fix for code scanning alert no. 2: Workflow does not contain permissions by SemyonSinchenko · Pull Request #831 · graphframes/graphframes · GitHub
Skip to content

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

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

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

Conversation

@SemyonSinchenko

Copy link
Copy Markdown
Collaborator

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

Add an explicit permissions block to .github/workflows/python-ci.yml at the workflow root (top-level), so it applies to all jobs unless overridden.
For this CI workflow, the best minimal non-breaking setting is:

  • contents: read

This preserves typical read-only operations like checkout while preventing unintended write access by default.

Change location:

  • File: .github/workflows/python-ci.yml
  • Insert permissions: after on: and before jobs:.

No imports, methods, or extra definitions are needed (YAML config only).

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

2 participants