Skip to content

Conversation

@eliteprox
Copy link
Collaborator

Potential fix for https://github.com/livepeer/pytrickle/security/code-scanning/1

To fix the problem, add a permissions block at the root of the workflow (preferred for simple workflows like this). This block should restrict the GITHUB_TOKEN to only the minimal required access, which is contents: read for checking out code and running tests.

  • Insert the following lines after the name: Run Python Tests entry and before on: in .github/workflows/test.yml:
    permissions:
      contents: read
  • No additional code, imports, or changes are required.

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>
@eliteprox eliteprox marked this pull request as ready for review November 28, 2025 19:07
@eliteprox eliteprox requested a review from JJassonn69 November 28, 2025 19:07
@eliteprox
Copy link
Collaborator Author

@JJassonn69 bumping for review 🙏

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