Merge pull request #678 from Ibrahim2595/rename/kagenti-to-rossoctl #262
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
| # OpenSSF Scorecard - Security health metrics for Open Source | |
| # | |
| # Measures repository security posture and provides recommendations. | |
| # Results are uploaded to GitHub Security tab and OpenSSF Scorecard API. | |
| # | |
| # NOTE: Scorecard only works on 'schedule' and 'push' triggers, NOT 'pull_request' | |
| # See: https://github.com/ossf/scorecard-action#workflow-restrictions | |
| # | |
| name: OpenSSF Scorecard | |
| on: | |
| schedule: | |
| - cron: '30 6 * * 1' # Weekly Monday 6:30 AM UTC | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| scorecard: | |
| name: Scorecard Analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run Scorecard | |
| uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 | |
| with: | |
| results_file: scorecard.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload SARIF to Security tab | |
| uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4 | |
| with: | |
| sarif_file: scorecard.sarif | |
| - name: Upload Scorecard results as artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: scorecard-results | |
| path: scorecard.sarif | |
| retention-days: 30 |