Skip to content

Merge pull request #1489 from oneapi-src/dependabot/github_actions/do… #1033

Merge pull request #1489 from oneapi-src/dependabot/github_actions/do…

Merge pull request #1489 from oneapi-src/dependabot/github_actions/do… #1033

Workflow file for this run

# Scorecard analysis, looking for vulnerabilities and bad practices in the repo.
name: Scorecard
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
workflow_dispatch:
schedule:
# Runs at 01:00 UTC on Saturday.
- cron: '0 1 * * 6'
push:
branches: [ "main" ]
permissions:
contents: read
security-events: read
jobs:
analyze:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Run analysis
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: scorecard_results.sarif
results_format: sarif
publish_results: true
# Upload the results as artifacts to the repository Actions tab.
- name: Upload artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
with:
name: Scorecard results
path: scorecard_results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.5
with:
sarif_file: scorecard_results.sarif