Skip to content

Conversation

@ALiberalVoluntarist
Copy link
Collaborator

Potential fix for https://github.com/bsv-blockchain/py-sdk/security/code-scanning/1

To fix the problem, you should add a permissions block to the workflow file, specifying the least privilege required. In this case, the workflow only needs to read repository contents (to check out code and run tests), so the minimal permissions block should be:

permissions:
  contents: read

This block should be added at the top level of the workflow file (just after the name: and before on:), so it applies to all jobs in the workflow. No additional imports or definitions are needed, as this is a configuration change in the YAML file.

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>
Copy link
Collaborator

@voyager1708 voyager1708 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@voyager1708 voyager1708 marked this pull request as ready for review July 28, 2025 02:31
@voyager1708 voyager1708 merged commit a375094 into master Jul 28, 2025
7 checks passed
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