mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-13 18:32:12 +03:00
Validated: actionlint clean on all three touched workflows, check-api-typecheck.mjs OK (289 pre-existing, all frozen) after boarding on top of #12094. Confirmed the .trivyignore justification against the documented CVE Variance process (docs/security/SUPPLY_CHAIN.md) — has tracking issue #12084, expiry before the v3.8.51 tag, and a real technical reason the .so can't be rebuilt in this repo. Scorecard branch guard correctly targets the actual default branch (release/vX.Y.Z), not a hardcoded main.
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: OpenSSF Scorecard
|
|
on:
|
|
branch_protection_rule:
|
|
schedule:
|
|
- cron: "27 7 * * 1"
|
|
push:
|
|
# Scorecard only accepts the DEFAULT branch — here the active release/vX.Y.Z,
|
|
# not `main`. The job below guards on it so a push to any other branch skips.
|
|
branches: ["main", "release/**"]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
analysis:
|
|
if: ${{ github.event_name != 'push' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
|
name: Scorecard analysis
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
# security-events: write removed — Scorecard findings are advisory and no longer
|
|
# uploaded to the code-scanning Security tab (they are supply-chain/posture scores,
|
|
# not code vulnerabilities, and drowned out real CodeQL alerts). The run still
|
|
# produces the OpenSSF badge (publish_results) and a downloadable SARIF artifact.
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run analysis
|
|
uses: ossf/scorecard-action@v2.4.4
|
|
with:
|
|
results_file: results.sarif
|
|
results_format: sarif
|
|
publish_results: true
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: SARIF file
|
|
path: results.sarif
|
|
retention-days: 5
|