Catch crash logs in stderr log file for background process (#2503) #914
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scorecard supply-chain security | |
on: | |
branch_protection_rule: | |
# Enable triggering the workflow manually | |
workflow_dispatch: | |
schedule: | |
# runs periodically on 12:01 utc (5:31pm ist) on monday | |
- cron: '01 12 * * 1' | |
push: | |
branches: [ "master" ] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
analysis: | |
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 code" | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: "Run analysis" | |
uses: ossf/[email protected] | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
repo_token: ${{ secrets.SCORECARD_TOKEN }} | |
# Public repositories: | |
# - Publish results to OpenSSF REST API for easy access by consumers | |
# - Allows the repository to include the Scorecard badge. | |
# - See https://github.com/ossf/scorecard-action#publishing-results. | |
publish_results: true | |
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | |
# format to the repository Actions tab. | |
- name: "Upload artifact" | |
uses: actions/[email protected] | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
# Upload the results to GitHub's code scanning dashboard. | |
- name: "Upload to code-scanning" | |
uses: github/codeql-action/[email protected] | |
with: | |
sarif_file: results.sarif |