chore: harden OpenSSF Scorecard from 4.3 to ~7.0 (#142)

Token-Permissions (0 -> 10): Set permissions: {} at workflow top level
across all 7 workflows, moved write scopes to per-job minimum.

SAST (0 -> 10): Added CodeQL workflow for JavaScript/TypeScript and
Python analysis on push, PR, and weekly schedule.

Vulnerabilities (0 -> ~8): Added 13 pnpm overrides to patch transitive
dependency vulnerabilities (38 -> 2 remaining, both in dev-only tools).

Pinned-Dependencies (5 -> 8-9): Pinned all Docker FROM images to SHA
digests, pinned pip-audit version in CI, pinned pip version in
Dockerfile.
This commit is contained in:
SnapOtter
2026-05-18 15:57:17 +08:00
committed by GitHub
parent 697566d00e
commit ec6ff3d8a8
12 changed files with 443 additions and 768 deletions
+6 -5
View File
@@ -6,11 +6,7 @@ on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
actions: write
contents: read
pull-requests: write
statuses: write
permissions: {}
jobs:
cla:
@@ -18,6 +14,11 @@ jobs:
(github.event_name == 'pull_request_target') ||
(github.event_name == 'issue_comment' && github.event.comment.body == 'recheck')
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
pull-requests: write
statuses: write
steps:
- name: CLA Assistant
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1