Skip to content

Resolve issues on workflows #272

Resolve issues on workflows

Resolve issues on workflows #272

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: 34 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:
security-events: write
id-token: write
steps:
- name: 🧰 Checkout Source Code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Run analysis
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
results_file: scorecard_results.sarif
results_format: sarif
publish_results: true
- name: Upload artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: SARIF file
path: scorecard_results.sarif
retention-days: 6
# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: scorecard_results.sarif