Skip to content

Scorecard supply-chain security #34

Scorecard supply-chain security

Scorecard supply-chain security #34

Workflow file for this run

# 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:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '24 12 * * 5'
push:
branches: [ "master" ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
if: ${{ github.repository == 'OpenVisualCloud/Video-Super-Resolution-Library' }}
permissions:
security-events: write
id-token: write
contents: read
actions: read
steps:
- name: "scorecard: Harden Runner security"
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: "scorecard: Checkout code"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: "scorecard: Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"
results_format: sarif
repo_token: ${{ secrets.GITHUB_TOKEN }}
publish_results: true
# Upload the results as artifacts (optional).
- name: "scorecard: Upload results artifact"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}"
path: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"
retention-days: 5
- name: "scorecard: Upload results to code-scanning"
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
with:
sarif_file: "scorecard-scan-results-${{ github.event.pull_request.number || github.sha }}.sarif"