Skip to content

Scorecard supply-chain security #181

Scorecard supply-chain security

Scorecard supply-chain security #181

Workflow file for this run

---
# SPDX-FileCopyrightText: Open Source Security Foundation (OpenSSF)
#
# SPDX-License-Identifier: Apache-2.0
#
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.
name: "Scorecard supply-chain security"
on: # yamllint disable-line rule:truthy
branch_protection_rule:
# Schedule the workflow to run every Tuesday at 4:24 AM
schedule:
- cron: "24 4 * * 2"
push:
branches: [main, develop, release]
pull_request:
# The branches below must be a subset of the branches above
types: [opened, synchronize, reopened]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
name: "Scorecard analysis"
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read
steps:
- name: "🧰 Checkout Source Code"
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: "Upload artifact"
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
with:
sarif_file: results.sarif