Skip to content

Merge pull request #2651 from jku/add-repository-tests #423

Merge pull request #2651 from jku/add-repository-tests

Merge pull request #2651 from jku/add-repository-tests #423

Workflow file for this run

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:
# NOTE: If you add security critical permissions, start pinning used actions
security-events: write # for uploading to code-scanning dashboard
id-token: write # for publishing results in scorecard public dataset
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: "Run analysis"
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
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@v3 # unpinned since this is not security critical
with:
sarif_file: results.sarif