Skip to content

ci: add Xray SCA dependency scan workflow [AR-90388] - #699

Closed
nmorag-dn wants to merge 3 commits into
drivenets:mainfrom
nmorag-dn:AICO-4423-xray-sca-design-system
Closed

nmorag-dn wants to merge 3 commits into
drivenets:mainfrom
nmorag-dn:AICO-4423-xray-sca-design-system

Conversation

@nmorag-dn

Copy link
Copy Markdown

Summary

Adds a JFrog Xray SCA (jf audit) source-dependency scan on every PR, matching the
org-standard xray.yml template already live on ACO-RAP, ACO-collector, ACO-fullstack,
ACO-benchmarking, ACO-DNOS-collector, ACO-BenchyPacks, and ACO-installation. This repo
ships a package.json/pnpm-lock.yaml (pnpm monorepo, library — no shipped image) and
already runs security.yml (CodeQL + Zizmor, SAST/workflow-lint) but had no dependency
SCA scan — closing that gap. Tracked as AR-90388 (this repo's own ticket, needed to
satisfy this repo's PR-title lint) / AICO-4423 (the umbrella cross-repo sweep).

  • Same pinned action ref as the fullstack template,
    drivenets/ACO-github-actions/xray@65db639c92ca22fe02708a74a45dc5f453391c58 (pinned
    rather than @main per the AICO-3242 incident — see the in-file comment).
  • Same id-token: write / contents: read permissions and jf_url /
    jf_oidc_provider_name / jf_access_token wiring as every existing repo.
  • fail_on_severity: high, matching the majority of existing repos.
  • Deliberate deviation from the template: adds workflow_dispatch: alongside
    pull_request: so the scan can also be run on demand.
  • The action auto-detects the SBOM target per ecosystem; no working_directory or
    extra_exclusions override was needed. Unlike DAP-UI, this repo has no
    CodeArtifact-scoped private registry (.npmrc), so no auth pre-step is needed for
    jf audit's pnpm resolution.
  • No changeset added — pnpm changeset status only requires one for versioned-package
    changes; this is a repo-level CI file with no package impact.

Requires (follow-up, not part of this PR)

JFrog OIDC trust must be provisioned for this repo before the scan will authenticate.
Until a JFrog admin (Zamir/Noga) does that, the workflow will report the deliberate
"not configured, skipping" green state (verified live on the sibling ACO-startup-config
PR #152) rather than a real scan — that is expected, not a broken workflow. The new check
is also not yet wired into this repo's required branch ruleset; that is a separate
follow-up once the scan is confirmed authenticating.

Verification

  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/xray.yml'))" — valid YAML.
  • actionlint was not available locally; the file is a near-verbatim copy of the
    already-CI-proven ACO-fullstack template, so the PR's own workflow run is the
    authoritative check.
  • No application code was touched — only a new workflow file.

Risk / reviewer focus

Report-only by default posture from the org (fail_on_severity: high, but the check is
not required in the branch ruleset yet) — this PR cannot block any merge. Reviewer focus:
confirm the SHA pin and severity gate match the intended org standard.

Adds JFrog Xray SCA (jf audit) source-dependency scanning on pull_request
plus workflow_dispatch for on-demand runs, matching the org-standard
template used by ACO-RAP/ACO-collector/ACO-fullstack/ACO-benchmarking/
ACO-DNOS-collector/ACO-BenchyPacks/ACO-installation. This repo already
runs security.yml (CodeQL + Zizmor) but had no dependency SCA scan.
Auto-detects the pnpm-managed package.json/pnpm-lock.yaml (no
CodeArtifact-scoped private registry here, unlike DAP-UI). Requires
JFrog OIDC trust to be provisioned for this repo before the scan will
authenticate. Part of the cross-repo sweep tracked as AICO-4423.
@nmorag-dn
nmorag-dn requested a review from aroba-dn as a code owner September 8, 2026 07:29
@netlify

netlify Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for drivenets-design-system ready!

Name Link
🔨 Latest commit 7313b37
🔍 Latest deploy log https://app.netlify.com/projects/drivenets-design-system/deploys/6a9fba5a55790b0008bcb3e4
😎 Deploy Preview https://deploy-preview-699--drivenets-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the ci label Sep 8, 2026
oxfmt --check flagged the inline trailing comment's spacing (normalizes
to a single space before `#`, the org template used three). No
semantic change.
cspell flagged both in the xray.yml comment (AICO- ticket references and
"behaviour", British spelling used in the source ACO-fullstack template
this file was copied from). Added to cspell/local-words.txt rather than
rewording the comment, to keep it byte-identical to the org template.
@nmorag-dn nmorag-dn closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant