Skip to content

Conversation

@mbrousset-ledger
Copy link

  • add .pre-commit-config.yaml and actionlint.yaml for local workflow enforcement
  • replace npm deployment wf with reusable wf

@ledger-wiz-cspm-secret-detection
Copy link

ledger-wiz-cspm-secret-detection bot commented Jan 22, 2026

Wiz Scan Summary

Scanner Findings
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 7 Info
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 7 Info

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Comment on lines 17 to 27
name: Get tag
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
steps:
- name: Get tag
id: get_tag
#run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

test_tools:

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 4 days ago

To fix the problem, add an explicit permissions block to the get_tag job (or at the workflow root) that restricts the GITHUB_TOKEN to the least privilege required. Since get_tag only reads environment variables and writes to $GITHUB_OUTPUT, it does not need any token permissions at all; we can safely set permissions: {} for that job, which disables all default permissions. This aligns with how the other jobs in the same workflow already declare explicit permissions, but tailored to this job’s needs.

Concretely, in .github/workflows/docker-image-publish.yml, under the get_tag job (below runs-on: ubuntu-latest is a clear place), insert a permissions: {} block with proper indentation. No additional imports or methods are needed; this is a pure configuration change in the workflow YAML. No existing functionality changes, because get_tag never used GITHUB_TOKEN in the first place.

Suggested changeset 1
.github/workflows/docker-image-publish.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/docker-image-publish.yml b/.github/workflows/docker-image-publish.yml
--- a/.github/workflows/docker-image-publish.yml
+++ b/.github/workflows/docker-image-publish.yml
@@ -16,6 +16,7 @@
   get_tag:
     name: Get tag
     runs-on: ubuntu-latest
+    permissions: {}
     outputs:
       tag: ${{ steps.get_tag.outputs.tag }}
     steps:
EOF
@@ -16,6 +16,7 @@
get_tag:
name: Get tag
runs-on: ubuntu-latest
permissions: {}
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
steps:
Copilot is powered by AI and may make mistakes. Always verify output.
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.

2 participants