Skip to content

Scorecard supply-chain security #187

Scorecard supply-chain security

Scorecard supply-chain security #187

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
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@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
sarif_file: results.sarif