scorecard.yml
This file
Path
.github/workflows/scorecard.yml
72 lines · 2.9 KiB · YAML
Last changed by
build(deps): bump the github-actions group with 3 updates (#7499)dependabot[bot]before adoption2717ae3
History of this fileTake it
ci: add support for OSSF scorecard reporting (#5431) Ulises Gascónbefore adoptionff86319
lines 1–34why, one step back1# This workflow uses actions that are not certified by GitHub. They are provided2# by a third-party and are governed by separate terms of service, privacy3# policy, and support documentation.45name: Scorecard supply-chain security6on:7 # For Branch-Protection check. Only the default branch is supported. See8 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection9 branch_protection_rule:10 # To guarantee Maintained check is occasionally updated. See11 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained12 schedule:13 - cron: '16 21 * * 1'14 push:15 branches: [ "master" ]1617# Declare default permissions as read only.18permissions: read-all1920jobs:21 analysis:22 name: Scorecard analysis23 runs-on: ubuntu-latest24 permissions:25 # Needed to upload the results to code-scanning dashboard.26 security-events: write27 # Needed to publish results and get a badge (see publish_results below).28 id-token: write29 # Uncomment the permissions below if installing in a private repository.30 # contents: read31 # actions: read3233 steps:34 - name: "Checkout code"build(deps): bump actions/checkout from 7.0.0 to 7.0.1 (#7403)dependabot[bot]before adoption28f732e
line 35why, one step back35 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1ci: add support for OSSF scorecard reporting (#5431) Ulises Gascónbefore adoptionff86319
lines 36–39why, one step back36 with:37 persist-credentials: false3839 - name: "Run analysis"build(deps): bump the github-actions group with 5 updates (#7462)dependabot[bot]before adoption4e65ec9
line 40why, one step back40 uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4ci: add support for OSSF scorecard reporting (#5431) Ulises Gascónbefore adoptionff86319
lines 41–61why, one step back41 with:42 results_file: results.sarif43 results_format: sarif44 # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:45 # - you want to enable the Branch-Protection check on a *public* repository, or46 # - you are installing Scorecard on a *private* repository47 # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.48 # repo_token: ${{ secrets.SCORECARD_TOKEN }}4950 # Public repositories:51 # - Publish results to OpenSSF REST API for easy access by consumers52 # - Allows the repository to include the Scorecard badge.53 # - See https://github.com/ossf/scorecard-action#publishing-results.54 # For private repositories:55 # - `publish_results` will always be set to `false`, regardless56 # of the value entered here.57 publish_results: true5859 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF60 # format to the repository Actions tab.61 - name: "Upload artifact"build(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#7211)dependabot[bot]before adoption777001a
line 62why, one step back62 uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1ci: add support for OSSF scorecard reporting (#5431) Ulises Gascónbefore adoptionff86319
lines 63–69why, one step back63 with:64 name: SARIF file65 path: results.sarif66 retention-days: 56768 # Upload the results to GitHub's code scanning dashboard.69 - name: "Upload to code-scanning"build(deps): bump the github-actions group with 3 updates (#7499)dependabot[bot]before adoption2717ae3
line 70why, one step back70 uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2ci: add support for OSSF scorecard reporting (#5431) Ulises Gascónbefore adoptionff86319
lines 71–72why, one step back71 with:72 sarif_file: results.sarif