-
Notifications
You must be signed in to change notification settings - Fork 0
Update 8hobbies/workflows digest to 05401f5 #256
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
Conversation
| jobs: | ||
| lint: | ||
| uses: 8hobbies/workflows/.github/workflows/npm-lint.yml@e113c9f0e34203f6766d0f79bef908a749faab88 | ||
| uses: 8hobbies/workflows/.github/workflows/npm-lint.yml@05401f51a9ee37f416b048394b9f3e4724bbc03f |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
To fix the problem, an explicit permissions block should be added to the workflow at the root level (before jobs:). This will limit the permissions granted to the GITHUB_TOKEN for all jobs, including the one that calls the reusable workflow. Since linting jobs typically require only minimal access, the best minimal starting point is:
permissions:
contents: readThis restricts the workflow to only reading repository contents, which suffices for linting and does not allow write actions on contents, issues, or pull requests. The change should be made in .github/workflows/lint.yml by adding the block after the name: field and before the on: block.
No additional methods, imports, or definitions are needed—just this YAML block.
-
Copy modified lines R16-R17
| @@ -13,6 +13,8 @@ | ||
| # limitations under the License. | ||
|
|
||
| name: Lint | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
| jobs: | ||
| run: | ||
| uses: 8hobbies/workflows/.github/workflows/npm-publish-dry-run.yml@e113c9f0e34203f6766d0f79bef908a749faab88 | ||
| uses: 8hobbies/workflows/.github/workflows/npm-publish-dry-run.yml@05401f51a9ee37f416b048394b9f3e4724bbc03f |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
To resolve the issue, add an explicit permissions block to .github/workflows/publish-dry-run.yml at the top level, above jobs:. Since the workflow is primarily using a reusable workflow which likely interacts with repository contents (reading the code, perhaps reading secrets, but generally not needing to write unless publishing), start with a minimal permissions declaration such as contents: read. Additional write permissions should only be added if strictly necessary; if not, keep to least privilege. Insert the following at line 16 (just after the workflow name and before the on: trigger). No additional imports or modifications are required, only the addition of a permissions block.
-
Copy modified lines R16-R17
| @@ -13,6 +13,8 @@ | ||
| # limitations under the License. | ||
|
|
||
| name: Publish Dry Run | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
| jobs: | ||
| test: | ||
| uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@e113c9f0e34203f6766d0f79bef908a749faab88 | ||
| uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@05401f51a9ee37f416b048394b9f3e4724bbc03f |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
To fix the problem, add a permissions block at the root of the workflow (.github/workflows/runtime.yml) to explicitly limit permissions of GITHUB_TOKEN. The least-privilege starting point is usually setting all permissions to read (e.g., contents: read). If the workflow or the reusable workflow requires more permissions (e.g., to create or modify issues, PRs), those specific keys may be set to write. As only the detected code snippet is available, we will add a root-level permissions block with contents: read—this is the CodeQL-recommended minimal starting point.
- Edit
.github/workflows/runtime.yml - Insert a root-level
permissionsblock after thename:(line 15) - Set
contents: readunless context shows that broader permissions are required (not apparent here) - No imports or external dependencies required
-
Copy modified lines R16-R17
| @@ -13,6 +13,8 @@ | ||
| # limitations under the License. | ||
|
|
||
| name: Runtime | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
e113c9f->05401f5Configuration
📅 Schedule: Branch creation - "on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.