Security Scorecard Dispatch #4
This file contains hidden or 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: Security Scorecard Dispatch | |
| on: | |
| workflow_dispatch: | |
| # 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: | |
| # To guarantee Maintained check is occasionally updated. See | |
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | |
| schedule: | |
| - cron: '27 14 * * *' # Run daily at 14:27 | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| analysis: | |
| name: Scorecard analysis | |
| runs-on: arc-large-amd64-runner | |
| # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. | |
| if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | |
| 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 | |
| # Uncomment the permissions below if installing in a private repository. | |
| contents: read | |
| actions: read | |
| # To allow GraphQL ListCommits to work | |
| issues: read | |
| pull-requests: read | |
| # To detect SAST tools | |
| checks: read | |
| steps: | |
| - name: Run Security Scorecard | |
| uses: worldcoin/gh-actions/security/security-scorecard@main | |
| # More information: https://github.com/worldcoin/gh-actions/tree/main/security/security-scorecard |