scorecard-monitor #46
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: scorecard-monitor | |
| on: | |
| # Scheduled trigger | |
| schedule: | |
| # Run every Sunday at 00:00 | |
| - cron: "0 0 * * 0" | |
| # Manual trigger | |
| workflow_dispatch: | |
| permissions: | |
| contents: none | |
| pull-requests: none | |
| issues: none | |
| packages: none | |
| env: | |
| ORG_LIST: "bloomberg" | |
| TARGET_BRANCH: "main" | |
| jobs: | |
| scorecard-monitor: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Required to update local files with the reports | |
| contents: write | |
| # Required to create pull requests | |
| pull-requests: write | |
| # Required to create issues | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: 🔍 run scorecard monitor | |
| uses: ossf/scorecard-monitor@a3a9c4cfa0684480ec5f86fa178fc22c4394b69e # v2.0.0-beta8 | |
| id: scorecard-monitor | |
| with: | |
| scope: reports/scorecard/scope.json | |
| database: reports/scorecard/database.json | |
| report: reports/scorecard/report.md | |
| auto-commit: false | |
| auto-push: false | |
| generate-issue: false | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| discovery-enabled: true | |
| discovery-orgs: ${{ env.ORG_LIST }} | |
| - name: 🖨️ print the scores | |
| run: | | |
| echo "${SCORECARD_SCORES}" | |
| env: | |
| SCORECARD_SCORES: ${{ steps.scorecard-monitor.outputs.scores }} | |
| - name: 🔃 create pull request | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: Add latest results to Scorecard Monitor report | |
| title: 🔍 Scorecard Monitor Report Update | |
| body: This pull request has been automatically filed by Scorecard Monitor. | |
| base: ${{ env.TARGET_BRANCH }} | |
| assignees: ${{ github.actor }} | |
| branch: scorecard-monitor-report-update | |
| delete-branch: true |