Skip to content

Conversation

@hugetim
Copy link
Owner

@hugetim hugetim commented Sep 3, 2025

Potential fix for https://github.com/hugetim/nbstata/security/code-scanning/1

To fix the issue, we need to add a permissions block that restricts the permissions of the GITHUB_TOKEN for this workflow/job. Since the job appears to run tests via fastai/workflows/nbdev-ci@master, the minimal permissions required are typically contents: read. If the workflow requires writing pull requests or issues (to provide feedback or status), then you can increase those permissions, but the minimal safe starting point is contents: read. The most direct way is to insert this block either at the root (applies to all jobs) or at the job level. Insert after the on: statement, before jobs:.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

hugetim and others added 2 commits September 3, 2025 10:08
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@hugetim hugetim changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions Potential fix for code scanning alerts: Workflow does not contain permissions Sep 3, 2025
@hugetim hugetim changed the title Potential fix for code scanning alerts: Workflow does not contain permissions Fixes for code scanning alerts: Workflow does not contain permissions Sep 3, 2025
@hugetim hugetim marked this pull request as ready for review September 3, 2025 15:12
@hugetim hugetim merged commit 59b4b45 into master Sep 3, 2025
6 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.

2 participants