mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
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.
32 lines
678 B
YAML
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"
|