ferrflow 7.21.1

Universal semantic versioning for monorepos and classic repos
Documentation
name: OSSF Scorecard

on:
  branch_protection_rule:
  schedule:
    - cron: '0 3 * * 1'   # weekly, Monday 03:00 UTC
  push:
    branches: [main]

# Declare default permissions as read only at the workflow level.
permissions: read-all

jobs:
  analysis:
    name: Scorecard analysis
    runs-on: ubuntu-latest
    permissions:
      # Required for publishing results to the GitHub code scanning dashboard.
      security-events: write
      # Required for Scorecard workflow to fetch repository metadata.
      id-token: write
      contents: read
      actions: read

    steps:
      - name: Checkout
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
        with:
          persist-credentials: false

      - name: Run analysis
        uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
        with:
          results_file: results.sarif
          results_format: sarif
          # publish_results: true publishes to scorecard.dev which backs the
          # public badge URL used in the README.
          publish_results: true

      - name: Upload artifact
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
        with:
          name: SARIF results
          path: results.sarif
          retention-days: 5

      - name: Upload to code scanning
        uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4
        with:
          sarif_file: results.sarif