-
Notifications
You must be signed in to change notification settings - Fork 0
Update 8hobbies/workflows digest to 067ef9a #310
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,6 @@ | |
| tags: ["v*"] | ||
| jobs: | ||
| build: | ||
| uses: 8hobbies/workflows/.github/workflows/npm-publish.yml@593ea3eb002451d046b787891d190896b45068e3 | ||
| uses: 8hobbies/workflows/.github/workflows/npm-publish.yml@067ef9a5f26017da21acc0f647d0f505951dcdf5 | ||
| secrets: | ||
| npm-auth-token: ${{ secrets.NPM_TOKEN }} | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,4 +22,4 @@ | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||
| test: | ||||||||||||||||||||||||||||||||
| uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@593ea3eb002451d046b787891d190896b45068e3 | ||||||||||||||||||||||||||||||||
| uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@067ef9a5f26017da21acc0f647d0f505951dcdf5 | ||||||||||||||||||||||||||||||||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI 2 days ago To fix the problem, explicitly limit the The single best way to fix this without changing existing functionality is to add a permissions:
contents: readafter the
Suggested changeset
1
.github/workflows/runtime.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
||||||||||||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 2 days ago
To fix the problem, explicitly declare the
permissionsfor theGITHUB_TOKENeither at the workflow root (applies to all jobs) or on thelintjob itself. For a standard lint workflow that only needs to read the repository to run checks, the leastβprivilege baseline iscontents: read. Since this workflow delegates to a reusable workflow and we cannot see its internals, we should still choose the minimal safe default of readβonly contents, which matches GitHubβs recommended starting point for many CI workflows.The single best fix with minimal functional impact is to add a rootβlevel
permissionsblock just below theon:section (or just abovejobs:), specifyingcontents: read. This will apply to all jobs in this workflow, includinglint, unless overridden. Concretely, in.github/workflows/lint.yml, add:between the
on:block (lines 17β21) and thejobs:block (line 23). No imports or additional definitions are needed; this is purely a YAML configuration change within the workflow file.