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 #38
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 #38
Changes from all commits
eb2fa256a85917c90056dd29bc6b7159b7dfa3d27a257f10d02d92da74092ef3d0c4d6File 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
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.
Tighten the URL guidance.
Escaping alone is not enough for
href/srcvalues; reviewers should require URL validation and an allow-list of safe schemes, otherwisejavascript:URLs can still slip through. OWASP recommends URL validation and allow-listinghttp/httpsfor untrusted URLs. (cheatsheetseries.owasp.org)🤖 Prompt for AI Agents
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.
🧩 Analysis chain
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 276
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 179
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 275
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 275
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 2607
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 2607
Disable
actions/checkoutcredential persistence in security scanner jobs.In
.github/workflows/security.reusable.yml, theactions/checkout@v4steps at lines 20, 32, and 47 don’t setpersist-credentials: false, so the default checkout behavior leaves the GITHUB_TOKEN persisted in git config before running third-party scanner actions.Suggested fix
📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 20-22: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 20-20: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
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.
🧩 Analysis chain
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 193
🏁 Script executed:
Repository: hallelx2/vectorless-engine
Length of output: 3317
🌐 Web query:
Trivy GitHub Releases download asset name trivy_<version>_Linux-64bit.tar.gz and checksums.txt filename💡 Result:
For Trivy GitHub releases, the assets follow a consistent naming convention generated by GoReleaser [1][2]. Download Asset Name The tar.gz archive for Linux 64-bit uses the following format: trivy_Linux-64bit.tar.gz For example, in version v0.71.0, the asset is named trivy_0.71.0_Linux-64bit.tar.gz [3]. Note that the version part in the filename does not include the "v" prefix found in the release tag [3][4]. Checksums File The checksums file is provided as a text file in the release assets with the following naming convention: trivy_checksums.txt Similar to the binaries, the version in this filename also omits the "v" prefix [3][4]. This file contains the SHA-256 checksums for the release artifacts [5].
Citations:
🌐 Web query:
Trivy release artifacts GPG signature .sig alongside checksums.txt💡 Result:
Trivy no longer publishes separate.sig and.pem files for binary release artifacts [1][2]. Since Trivy v0.68.1, the project has transitioned to using Sigstore signature bundles, which are provided as.sigstore.json files alongside the artifacts on GitHub Releases [1][2]. For verifying binary artifacts (such as tarballs), you should download the relevant artifact and its associated.sigstore.json file, then perform keyless verification using cosign [1][2]. The recommended command for this verification is: cosign verify-blob-attestation \ --bundle .sigstore.json \ --certificate-oidc-issuer=https://token.actions.githubusercontent.com \ --certificate-identity 'https://github.com/aquasecurity/trivy/.github/workflows/reusable-release.yaml@refs/tags/' Regarding the checksums.txt file, it is still provided in every release, but it is not typically accompanied by a standalone.sig file [3][4][5]. While the project has moved to Sigstore for binary verification, RPM and Deb packages continue to be signed by GPG [1][2]. You can verify these packages by importing the public key provided by the Trivy project and using standard package management tools like rpm -K [1][2]. The public key for RPM verification is available at https://aquasecurity.github.io/trivy-repo/rpm/public.key [1][2].
Citations:
Pin and verify Trivy installation artifacts in CI (avoid
curl .../main/... | sh).At line 133,
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/... | shexecutes a remote script from the mutablemainbranch, so upstream changes can become code execution in your workflow.Replace it by pinning a specific Trivy release and downloading the corresponding artifacts (e.g.,
trivy_<version>_Linux-64bit.tar.gz+trivy_<version>_checksums.txt) and verifying the checksum before installing. Trivy releases also support signature verification via Sigstore (.sigstore.json) usingcosign verify-blob-attestation.🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.