scorecard.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # synced from @nextcloud/android-config
  2. # SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
  3. # SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. name: Scorecard supply-chain security
  6. on:
  7. branch_protection_rule:
  8. schedule:
  9. - cron: '32 23 * * 4'
  10. push:
  11. branches: [ "main", "master" ]
  12. # Declare default permissions as read only.
  13. permissions: read-all
  14. concurrency:
  15. group: scorecard-supply-chain-security-${{ github.head_ref || github.run_id }}
  16. cancel-in-progress: true
  17. jobs:
  18. analysis:
  19. name: Scorecard analysis
  20. runs-on: ubuntu-latest
  21. permissions:
  22. # Needed to upload the results to code-scanning dashboard.
  23. security-events: write
  24. steps:
  25. - name: "Checkout code"
  26. uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  27. with:
  28. persist-credentials: false
  29. - name: "Run analysis"
  30. uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
  31. with:
  32. results_file: results.sarif
  33. results_format: sarif
  34. publish_results: false
  35. # Upload the results to GitHub's code scanning dashboard.
  36. - name: "Upload to code-scanning"
  37. uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
  38. with:
  39. sarif_file: results.sarif