fix(deps): update go modules #6
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, supply-chain posture score, published to the Scorecard API (badge) | |
| # and the GitHub Security tab. Publishing requires a public repo, so results appear once | |
| # the mirror is public. Actions pinned to SHAs; Renovate updates them. | |
| name: scorecard | |
| on: | |
| branch_protection_rule: | |
| schedule: | |
| - cron: '20 7 * * 2' # Tuesdays 07:20 UTC | |
| workflow_dispatch: # so a run can be kicked off without inventing a commit | |
| push: | |
| branches: [main] | |
| permissions: {} | |
| jobs: | |
| analysis: | |
| name: scorecard analysis | |
| runs-on: ubuntu-latest | |
| # A job-level block replaces the workflow-level one, so every scope Scorecard | |
| # needs is listed here. The reads are what its checks query, without them the | |
| # checkout of a private repo 404s and several checks score blind. | |
| permissions: | |
| security-events: write # upload the SARIF result | |
| id-token: write # publish results to the Scorecard API | |
| contents: read # checkout | |
| actions: read # upload-sarif reads the run it is attaching to | |
| issues: read # maintained / code-review checks | |
| pull-requests: read # code-review check | |
| checks: read # ci-tests check | |
| steps: | |
| # Deny egress by default; see ci.yml. Scorecard queries deps.dev / OSV / the OpenSSF | |
| # best-practices API for its checks, and signs its published result through Sigstore. | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.deps.dev:443 | |
| api.github.com:443 | |
| api.osv.dev:443 | |
| api.scorecard.dev:443 | |
| fulcio.sigstore.dev:443 | |
| github.com:443 | |
| oss-fuzz-build-logs.storage.googleapis.com:443 | |
| rekor.sigstore.dev:443 | |
| tuf-repo-cdn.sigstore.dev:443 | |
| www.bestpractices.dev:443 | |
| - name: Checkout | |
| 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: results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: scorecard-results | |
| path: results.sarif | |
| retention-days: 5 | |
| - name: Upload to code scanning | |
| uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 | |
| with: | |
| sarif_file: results.sarif |