Merge pull request #2190 from jku/scorecards

workflows: Add Scorecards workflow
This commit is contained in:
Jussi Kukkonen 2022-11-22 18:23:53 +02:00 committed by GitHub
commit fcf6cf679f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

39
.github/workflows/scorecards.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: Scorecards analysis
on:
branch_protection_rule:
schedule:
- cron: '21 6 * * 1'
push:
branches: [ develop ]
workflow_dispatch:
permissions: {}
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
security-events: write # for uploading to code-scanning dashboard
id-token: write # for signing results
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: "Run analysis"
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d
with:
results_file: results.sarif
# sarif format required by upload-sarif action
results_format: sarif
# "repo_token" not set because personal access tokens are dangerous.
# This means Branch-Protection check will not have correct results.
publish_results: true
- name: "Upload to code-scanning dashboard"
uses: github/codeql-action/upload-sarif@8aff97f12c99086bdb92ff62ae06dbbcdf07941b
with:
sarif_file: results.sarif

View file

@ -5,6 +5,7 @@
[![Docs](https://readthedocs.org/projects/theupdateframework/badge/)](https://theupdateframework.readthedocs.io/)
[![CII](https://bestpractices.coreinfrastructure.org/projects/1351/badge)](https://bestpractices.coreinfrastructure.org/projects/1351)
[![PyPI](https://img.shields.io/pypi/v/tuf)](https://pypi.org/project/tuf/)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/theupdateframework/python-tuf/badge)](https://api.securityscorecards.dev/projects/github.com/theupdateframework/python-tuf)
----------------------------
[The Update Framework (TUF)](https://theupdateframework.io/) is a framework for