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:
28
.github/workflows/openssf-scorecard-gate.yml
vendored
Normal file
28
.github/workflows/openssf-scorecard-gate.yml
vendored
Normal 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 }}
|
||||
50
.github/workflows/openssf-scorecard.yml
vendored
50
.github/workflows/openssf-scorecard.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user