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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
  27. with:
  28. persist-credentials: false
  29. - name: "Run analysis"
  30. uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
  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@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
  38. with:
  39. sarif_file: results.sarif