Skip to content
Draft
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
20 changes: 17 additions & 3 deletions .github/workflows/osv-offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
env:
OSV_CACHE_ROOT: ${{ runner.temp }}/osv-db/osv-scalibr
run: |
mkdir -p "$OSV_CACHE_ROOT/npm" "$OSV_CACHE_ROOT/crates.io" "$OSV_CACHE_ROOT/Go"
mkdir -p \
"$OSV_CACHE_ROOT/npm" \
"$OSV_CACHE_ROOT/crates.io" \
"$OSV_CACHE_ROOT/Go" \
"$OSV_CACHE_ROOT/SwiftURL"
curl --fail --silent --show-error --location \
https://osv-vulnerabilities.storage.googleapis.com/npm/all.zip \
--output "$OSV_CACHE_ROOT/npm/all.zip"
Expand All @@ -28,8 +32,11 @@ jobs:
curl --fail --silent --show-error --location \
https://osv-vulnerabilities.storage.googleapis.com/Go/all.zip \
--output "$OSV_CACHE_ROOT/Go/all.zip"
curl --fail --silent --show-error --location \
https://osv-vulnerabilities.storage.googleapis.com/SwiftURL/all.zip \
--output "$OSV_CACHE_ROOT/SwiftURL/all.zip"
cd "$OSV_CACHE_ROOT"
sha256sum npm/all.zip crates.io/all.zip Go/all.zip > SHA256SUMS
sha256sum npm/all.zip crates.io/all.zip Go/all.zip SwiftURL/all.zip > SHA256SUMS
- name: Upload database snapshot
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
Expand Down Expand Up @@ -69,8 +76,15 @@ jobs:
id: scan
continue-on-error: true
env:
CODEVETTER_OSV_NETWORK_ISOLATION: linux-network-namespace
XDG_CACHE_HOME: ${{ runner.temp }}/osv-db
run: node scripts/run-osv-offline.mjs
run: |
sudo unshare --net -- \
env \
CODEVETTER_OSV_NETWORK_ISOLATION="$CODEVETTER_OSV_NETWORK_ISOLATION" \
PATH="$PATH" \
XDG_CACHE_HOME="$XDG_CACHE_HOME" \
"$(command -v node)" scripts/run-osv-offline.mjs
- name: Upload scan evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
Expand Down
17 changes: 17 additions & 0 deletions docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,22 @@
},
"dependencies": {
"blume": "1.5.3"
},
"pnpm": {
"overrides": {
"@hono/node-server": "1.19.15",
"brace-expansion@2": "2.1.4",
"brace-expansion@5": "5.0.9",
"browserslist": "4.28.7",
"fast-uri": "3.1.6",
"hono": "4.12.34",
"ip-address": "10.3.1",
"js-yaml@3": "3.15.1",
"nanoid@3": "3.3.18",
"path-to-regexp@6.1.0": "6.3.0",
"postcss": "8.5.26",
"qs": "6.16.0",
"tar": "7.5.21"
}
}
}
Loading
Loading