mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
Most of the official actions move one or more majors, onto the Node 24 runtime. The inputs these workflows pass are still accepted, and the contract tests that pin the checkout and App token commits follow. Since checkout v6 the persisted token lives in a separate config file, so unsetting the extra header in .git/config no longer removes it. The release job's checkout stops persisting credentials, so its staging branch push goes out with the App token, and a contract test guards that setting. The flux action stays on v2.8.6, whose tag has to equal the Flux CLI version it installs. A self-hosted runner needs v2.327.1 or newer for the Node 24 checkout, which the Proxmox workflow now states next to its runs-on. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
58 lines
2.2 KiB
YAML
58 lines
2.2 KiB
YAML
name: OpenSSF Scorecard
|
|
|
|
on:
|
|
branch_protection_rule:
|
|
schedule:
|
|
# Run weekly on Mondays at 06:00 UTC.
|
|
- cron: '0 6 * * 1'
|
|
workflow_dispatch:
|
|
|
|
# Declare default permissions as read-only.
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
analysis:
|
|
name: Scorecard analysis
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
# Needed to publish results to the public scorecard.dev API
|
|
# (OIDC token allows publish without storing long-lived credentials).
|
|
id-token: write
|
|
# Needed to read repository contents.
|
|
contents: read
|
|
# Needed to read workflow definitions for the Dangerous-Workflow check.
|
|
actions: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run analysis
|
|
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
|
|
with:
|
|
results_file: results.sarif
|
|
results_format: sarif
|
|
# The default GITHUB_TOKEN cannot read branch-protection settings, so
|
|
# the Branch-Protection check is scored on partial data. Provide a PAT
|
|
# with admin:read on the repo as the SCORECARD_TOKEN secret to let it
|
|
# see the full ruleset; falls back to the default token when unset, so
|
|
# this is a no-op until the secret is added.
|
|
repo_token: ${{ secrets.SCORECARD_TOKEN || github.token }}
|
|
# Publish the results to the OpenSSF Scorecard public API so the
|
|
# project appears at https://scorecard.dev/viewer/?uri=github.com/cozystack/cozystack
|
|
publish_results: true
|
|
|
|
# SARIF is kept as a downloadable artifact only. It is intentionally NOT
|
|
# uploaded to GitHub code-scanning: Scorecard posts one alert per check,
|
|
# which floods the Security > Code scanning dashboard and buries CodeQL's
|
|
# first-party findings. The public scorecard.dev badge (publish_results
|
|
# above) is the canonical view of these results.
|
|
- name: Upload SARIF as artifact
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: scorecard-sarif
|
|
path: results.sarif
|
|
retention-days: 5
|