Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
chore(standards): synced file(s) with hallelx2/dev-standards #4
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
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
chore(standards): synced file(s) with hallelx2/dev-standards #4
Changes from all commits
e63c00ca91416861037bb758462545d9b31806685becff1dc7ffe015558fc8fe6ea92bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: package_managers.dependabot.dependabot-missing-cooldown.dependabot-missing-cooldown Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: package_managers.dependabot.dependabot-missing-cooldown.dependabot-missing-cooldown Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: package_managers.dependabot.dependabot-missing-cooldown.dependabot-missing-cooldown Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: hallelx2/vectorless-docs
Length of output: 1300
🏁 Script executed:
Repository: hallelx2/vectorless-docs
Length of output: 5981
Disable persisted checkout credentials.
actions/checkout@v4persists the GitHub token in the local Git config by default. Setpersist-credentials: falseon every checkout before later installers can access those credentials..github/workflows/security.reusable.yml#L22-L24: disable credential persistence forsecret-scan..github/workflows/security.reusable.yml#L35-L35: disable credential persistence forsast-semgrep..github/workflows/security.reusable.yml#L58-L58: disable credential persistence forgo-cves..github/workflows/security.reusable.yml#L77-L77: disable credential persistence forgo-sast..github/workflows/security.reusable.yml#L92-L92: disable credential persistence fornode-cves..github/workflows/security.reusable.yml#L111-L111: disable credential persistence forpython-sast..github/workflows/security.reusable.yml#L131-L131: disable credential persistence forinfra-trivy.🧰 Tools
🪛 GitHub Check: Semgrep OSS
[warning] 22-22: Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag
GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g.
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608.🪛 zizmor (1.28.0)
[warning] 22-24: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
📍 Affects 1 file
.github/workflows/security.reusable.yml#L22-L24(this comment).github/workflows/security.reusable.yml#L35-L35.github/workflows/security.reusable.yml#L58-L58.github/workflows/security.reusable.yml#L77-L77.github/workflows/security.reusable.yml#L92-L92.github/workflows/security.reusable.yml#L111-L111.github/workflows/security.reusable.yml#L131-L131🤖 Prompt for AI Agents
Sources: Coding guidelines, Linters/SAST tools
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Pin the Semgrep container image to a specific version or digest.
image: semgrep/semgreppulls thelatesttag by default. If a compromised or broken image is pushed, it affects every CI run that uses this workflow. Pin to a specific version tag or, ideally, a digest.Proposed fix
Or pin by digest for maximum reproducibility:
📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.26.1)
[error] 33-33: unpinned image references (unpinned-images): container image is unpinned
(unpinned-images)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Fail when a security scanner cannot produce a reliable result.
|| true,continue-on-error: true,-no-fail, and--exit-code 0allow this workflow to complete successfully after scanner failures or confirmed findings. Keep advisory findings separate if needed, but fail the job when a scanner cannot run or upload its result..github/workflows/security.reusable.yml#L37-L52: preserve Semgrep and SARIF upload failures..github/workflows/security.reusable.yml#L69-L71: preservegovulncheckfailures..github/workflows/security.reusable.yml#L82-L86: define an explicit failure policy forgosec..github/workflows/security.reusable.yml#L103-L105: preservenpm auditfailures..github/workflows/security.reusable.yml#L120-L125: preservepip-auditand Bandit failures..github/workflows/security.reusable.yml#L132-L135: make high and critical Trivy findings actionable.As per coding guidelines, do not weaken security controls by swallowing errors.
🧰 Tools
🪛 GitHub Check: Semgrep OSS
[warning] 49-49: Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag
GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g.
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608.📍 Affects 1 file
.github/workflows/security.reusable.yml#L37-L52(this comment).github/workflows/security.reusable.yml#L69-L71.github/workflows/security.reusable.yml#L82-L86.github/workflows/security.reusable.yml#L103-L105.github/workflows/security.reusable.yml#L120-L125.github/workflows/security.reusable.yml#L132-L135🤖 Prompt for AI Agents
Source: Coding guidelines
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag Warning
Check failure
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.gha-curl-pipe-shell.gha-curl-pipe-shell Error
Check failure
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.secrets-inherit.secrets-inherit Error
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.