1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00

Sync common files from infra repository (#1920)

Synchronized from bootc-dev/infra@e6bcd34440.

Signed-off-by: bootc-dev Bot <bot@bootc.dev>
Co-authored-by: bootc-dev Bot <bot@bootc.dev>
This commit is contained in:
bootc-bot[bot]
2026-01-16 21:18:19 +08:00
committed by GitHub
parent d5999a2af0
commit 315bfb3cfd
3 changed files with 29 additions and 51 deletions

View File

@@ -0,0 +1,28 @@
# Gate PRs on OpenSSF Scorecard regressions.
#
# See also: https://github.com/ossf/scorecard/issues/1270
name: OpenSSF Scorecard
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
scorecard:
name: Scorecard
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check for regressions
uses: bootc-dev/actions/openssf-scorecard@main
with:
base-sha: ${{ github.event.pull_request.base.sha }}
head-sha: ${{ github.event.pull_request.head.sha }}

View File

@@ -1,50 +0,0 @@
# Upstream https://github.com/ossf/scorecard/blob/main/.github/workflows/scorecard-analysis.yml
# Tweaked to not pin actions by SHA digest as I think that's overkill noisy security theater.
name: OpenSSF Scorecard analysis
on:
push:
branches:
- main
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-24.04
permissions:
# Needed for Code scanning upload
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write
steps:
- name: "Checkout code"
uses: actions/checkout@v6
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@v2.4.3
with:
results_file: results.sarif
results_format: sarif
# Scorecard team runs a weekly scan of public GitHub repos,
# see https://github.com/ossf/scorecard#public-data.
# Setting `publish_results: true` helps us scale by leveraging your workflow to
# extract the results instead of relying on our own infrastructure to run scans.
# And it's free for you!
publish_results: true
- name: "Upload artifact"
uses: actions/upload-artifact@v6
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: results.sarif