Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ jobs:
- name: Install dependencies
run: npm ci

# The embargo gateway does not carry npm's advisory API. npm POSTs to
# /-/npm/v1/security/advisories/bulk, that fails through the gateway, and
# the fallback to the retired /-/npm/v1/security/audits/quick answers 400
# ("Invalid request payload JSON format"), so both steps below exit 1
# before reading a single advisory. Every run since the gateway landed in
# #248 has failed this way; the last green one predates it.
#
# Auditing downloads no package code, so resolving the registry publicly
# here costs nothing: the install above already ran through the gateway,
# and it is the only step that fetches tarballs. Remove this once the
# gateway proxies the advisory endpoints.
- name: Unpin the registry for the advisory API
run: |
sudo sed -i "/registry\.npmjs\.org/d" /etc/hosts
getent hosts registry.npmjs.org

# Gating check: fail the build on high/critical vulnerabilities in
# the production dependencies declared in package.json. These are the
# ones that ship to consumers of the SDK (and show up in their Wiz
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading