Skip to content

ci: leave scripts/ out of the Veracode scan - #113

Merged
bsayed merged 1 commit into
mainfrom
veracode-exclude-scripts
Oct 22, 2026
Merged

bsayed merged 1 commit into
mainfrom
veracode-exclude-scripts

Conversation

@bsayed

@bsayed bsayed commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds scripts to exclude-dirs in both Code Scanning jobs (PR and main), so scripts/ is no longer part of the Veracode source upload.

Why: vbuild-scan-action now enforces Veracode's pipeline severities by default (eqtylab/vbuild-scan-action#6). Since then the main scan fails on two Very High CWE-78 "OS Command Injection" findings (run):

  • scripts/archive_version.py:143, subprocess.run(["git", "show", f"{GH_PAGES}:{rel}"], …)
  • scripts/archive_version.py:210, subprocess.run(["git", "archive", tag], …)

Both pass an argument list with no shell, so there is no shell to inject into. scripts/ is maintainer tooling (docs archiving, release and link checks):

  • wheels: not included
  • sdist: in the source tree, since the sdist currently carries the whole repository (a local maturin sdist from main has all 15 files)
  • source builds: a build of the sdist compiles only the Rust extension, so nothing in scripts/ is installed or run, by a build or by eqty_sdk

Effect on the upload: I ran the action's zip packaging on this branch with the old and new exclude-dirs. The upload goes from 523 to 507 entries: the 16 under scripts/ are gone, and eqty_sdk/ and src/ are unchanged. All nine findings from the last scan were in scripts/: the two Very High above, plus seven Medium (CWE-73) in archive_version.py, manifest_diff.py, verify_manifest_roundtrip.py and check_old_links.py.

exclude-dirs also becomes --skip-dirs for Trivy's vulnerability and license scans, so Trivy skips scripts/ too. Nothing is lost on vulnerabilities: scripts/ has no dependency manifests (no requirements, lock or pyproject files). Only the license scan of its 15 script files goes.

No CHANGELOG entry: this changes CI only, not the SDK.

scripts/ is maintainer tooling (docs archiving, release checks). It is in
the sdist's source tree but never installed or run by a build or by
eqty_sdk. With veracode-severity now enforced, its two Very High CWE-78
findings in scripts/archive_version.py fail the main scan; both are
subprocess.run calls with argument lists and no shell.
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
integrity-py Ready Ready Preview Oct 22, 2026 3:35pm UTC

Request Review

@Pacman99 Pacman99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TJbrunk TJbrunk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bsayed
bsayed merged commit 496c6ae into main Oct 22, 2026
5 checks passed
@bsayed
bsayed deleted the veracode-exclude-scripts branch October 22, 2026 15:51

This branch was successfully deployed

1 active deployment
Preview — 32327d60 Deployed Oct 22, 2026 by vercel[bot]
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.

3 participants