-
Notifications
You must be signed in to change notification settings - Fork 16
Add TODO issue workflow #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: alstr/todo-to-issue-action@v4 | ||
with: | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 month ago
To fix the issue, we need to add a permissions
block to the workflow. Since the workflow uses the alstr/todo-to-issue-action@v4
action, which likely interacts with issues, we should grant the minimal required permissions. Based on the action's purpose, it likely needs contents: read
to access the repository and issues: write
to create or modify issues. These permissions should be added at the workflow level to apply to all jobs unless overridden.
-
Copy modified lines R10-R13
@@ -9,2 +9,6 @@ | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
@@ -17,2 +21 @@ | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: alstr/todo-to-issue-action@v4 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Summary
Testing
npm test