-
Notifications
You must be signed in to change notification settings - Fork 0
Update 8hobbies/workflows digest to abd9589 #288
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@00e84568aa8441faba7d53d88666b78e19c677d7 | ||
| uses: 8hobbies/workflows/.github/workflows/npm-publish.yml@abd958951e5f7fe9cdc2b25bf6686a4ba5b5c47e | ||
| 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@00e84568aa8441faba7d53d88666b78e19c677d7 | ||||||||||||||||||||||||||||||||
| uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@abd958951e5f7fe9cdc2b25bf6686a4ba5b5c47e | ||||||||||||||||||||||||||||||||
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 12 days ago To fix the problem, explicitly set The single best fix without changing functionality is to add a root-level
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 12 days ago
In general, this problem is fixed by explicitly declaring a
permissionsblock either at the root of the workflow (to apply to all jobs) or inside the specific job that uses theGITHUB_TOKEN. For a lint workflow that only needs to fetch code and run checks,contents: readis typically sufficient. This constrainsGITHUB_TOKENto read-only access to repository contents, rather than inheriting potentially broader read-write defaults.The single best fix here, without changing functionality, is to add a root-level
permissionsblock just after thename:line (or beforejobs:) in.github/workflows/lint.yml, specifyingcontents: read. A root-level block will apply to thelintjob unless that job or the called reusable workflow requests narrower permissions. Since this workflow appears only to run linting via a reusable workflow, read-only repository contents access is appropriate and should not break existing behavior.Concretely:
Edit
.github/workflows/lint.yml.Insert:
between the
name: Lintline and theon:block. No imports or additional methods are needed, as this is pure YAML configuration.