Skip to content

Update 8hobbies/workflows digest to d98caf4#149

Merged
renovate[bot] merged 1 commit intomasterfrom
renovate/all-digest
Nov 23, 2025
Merged

Update 8hobbies/workflows digest to d98caf4#149
renovate[bot] merged 1 commit intomasterfrom
renovate/all-digest

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 23, 2025

This PR contains the following updates:

Package Type Update Change
8hobbies/workflows action digest aeea4ef -> d98caf4

Configuration

📅 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) November 23, 2025 09:35
@renovate renovate bot requested a review from xuhdev as a code owner November 23, 2025 09:35
jobs:
lint:
uses: 8hobbies/workflows/.github/workflows/npm-lint.yml@aeea4ef82ae99732c467d6245294bbed0e0fa426
uses: 8hobbies/workflows/.github/workflows/npm-lint.yml@d98caf412242294b1c9060cab2e30ecc9c55a0f7

Check warning

Code 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 Autofix

AI 3 months ago

The best fix is to add a permissions: block to the workflow, granting only those privileges required for the workflow to operate. Since the job only runs linting (and uses a reusable workflow) and does not appear to require any token-based write actions (such as creating issues or PRs, pushing code, etc.), the minimal permission would be read-only access to the repository contents. Thus, adding the following near the top of the workflow file, just after the name: declaration and before on:, ensures the workflow tokens are limited to the least privilege needed:

permissions:
  contents: read

If the reusable workflow needs more (e.g., to update PRs), this can be adjusted, but contents: read is correct as a minimal starting point.

Edit location:

  • File: .github/workflows/lint.yml
  • Insert after line 13 (after name: Lint and before on:).

Suggested changeset 1
.github/workflows/lint.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -11,6 +11,8 @@
 # OF THIS SOFTWARE.
 
 name: Lint
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -11,6 +11,8 @@
# OF THIS SOFTWARE.

name: Lint
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
jobs:
run:
uses: 8hobbies/workflows/.github/workflows/npm-publish-dry-run.yml@aeea4ef82ae99732c467d6245294bbed0e0fa426
uses: 8hobbies/workflows/.github/workflows/npm-publish-dry-run.yml@d98caf412242294b1c9060cab2e30ecc9c55a0f7

Check warning

Code 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 Autofix

AI 3 months ago

To fix this issue, add a permissions: block to the workflow file (.github/workflows/publish-dry-run.yml). According to GitHub best practices, this block can be added at the root of the YAML (top-level, before jobs:), and should specify the minimum privileges necessary. In most cases, for a publish dry run or similar jobs, contents: read is sufficient unless greater permissions are strictly needed. If you are unsure, setting the permissions to contents: read will be a safe default. Add the following block after the name: and before the on: key.


Suggested changeset 1
.github/workflows/publish-dry-run.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/publish-dry-run.yml b/.github/workflows/publish-dry-run.yml
--- a/.github/workflows/publish-dry-run.yml
+++ b/.github/workflows/publish-dry-run.yml
@@ -11,6 +11,8 @@
 # OF THIS SOFTWARE.
 
 name: Publish Dry Run
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -11,6 +11,8 @@
# OF THIS SOFTWARE.

name: Publish Dry Run
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
jobs:
test:
uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@aeea4ef82ae99732c467d6245294bbed0e0fa426
uses: 8hobbies/workflows/.github/workflows/npm-runtime.yml@d98caf412242294b1c9060cab2e30ecc9c55a0f7

Check warning

Code 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 Autofix

AI 3 months ago

To fix the problem, add an explicit permissions block to the workflow file. Since the job only references another reusable workflow, it is generally safest to add the permissions block at the workflow root (top level, alongside name, on, and jobs). The lowest privilege appropriate for most workflows is contents: read, which denies any write access to repository content, unless more privilege is needed. If you know the workflow or the reusable workflow needs additional permissions (like write access to issues or pull-requests), you should add only those specific write permissions. Since only the usage of another workflow is shown, we will add contents: read at the workflow root for minimal privilege.

Specifically, insert the following block under the name and before the on block:

permissions:
  contents: read

No methods, imports, or additional definitions are required; just update the YAML.


Suggested changeset 1
.github/workflows/runtime.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml
--- a/.github/workflows/runtime.yml
+++ b/.github/workflows/runtime.yml
@@ -11,6 +11,8 @@
 # OF THIS SOFTWARE.
 
 name: Runtime
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -11,6 +11,8 @@
# OF THIS SOFTWARE.

name: Runtime
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
@renovate renovate bot merged commit fe7f1cc into master Nov 23, 2025
11 checks passed
@renovate renovate bot deleted the renovate/all-digest branch November 23, 2025 09:36
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.

0 participants