Files
oc/.github/workflows/codeql.yml
T
only-cli d0516a6a4c harden CI: CodeQL, dependency review, npm provenance, OpenSSF Scorecard
Adds free security tooling for a public npm CLI: CodeQL static analysis
on push/PR plus a weekly scan, a Dependency Review check that blocks PRs
introducing vulnerable or malicious packages, --provenance on npm publish
(cheap given existing OIDC trusted publishing), and a weekly OpenSSF
Scorecard run with a README badge.
2026-08-19 16:21:46 -04:00

32 lines
678 B
YAML

# Static analysis for the JS source, on every push/PR plus a weekly scan
# that catches newly-disclosed vulnerable patterns in unchanged code.
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "17 3 * * 1"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
- uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"