mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
b491e47611
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 1.0.4 to 1.1.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](c1aec4ac82...5c8bc69dc8
)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: Scorecard analysis workflow
|
|
on:
|
|
push:
|
|
# Only the default branch is supported.
|
|
branches:
|
|
- main
|
|
schedule:
|
|
# Weekly on Saturdays.
|
|
- cron: '30 1 * * 6'
|
|
#pull_request:
|
|
# All branches are supported.
|
|
# branches: [main]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
analysis:
|
|
name: Scorecard analysis
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813 # v1
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- name: "Checkout code"
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: "Run analysis"
|
|
uses: ossf/scorecard-action@5c8bc69dc88b65c66584e07611df79d3579b0377
|
|
with:
|
|
results_file: results.sarif
|
|
results_format: sarif
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
# 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
|
|
|
|
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
|
|
# Optional.
|
|
- name: "Upload artifact"
|
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v2
|
|
with:
|
|
name: SARIF file
|
|
path: results.sarif
|
|
retention-days: 5
|
|
|
|
- name: "Upload SARIF results"
|
|
uses: github/codeql-action/upload-sarif@f5d822707ee6e8fb81b04a5c0040b736da22e587 # v1
|
|
with:
|
|
sarif_file: results.sarif
|