Skip to content

fix(release): consolidate to single main branch #35

fix(release): consolidate to single main branch

fix(release): consolidate to single main branch #35

Workflow file for this run

name: OpenSSF Scorecard
on:
branch_protection_rule:
schedule:
# Weekly, offset from the rest of the security cron jobs.
- cron: '23 5 * * 1'
push:
branches: [main]
workflow_dispatch:
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
if: github.ref_name == github.event.repository.default_branch
permissions:
# Required to upload results to the GitHub code-scanning dashboard.
security-events: write
# Required to retrieve OIDC tokens for publish_results.
id-token: write
# Required to read repository contents.
contents: read
# Required to read the actions used in workflows.
actions: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
# publish_results: true uploads the results to the Scorecard
# registry behind the public badge in the README.
publish_results: true
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload SARIF to GitHub code-scanning
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
sarif_file: results.sarif