2023-02-14 05:46:55 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2024-02-29 22:23:57 +03:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
2024-02-29 23:35:52 +03:00
|
|
|
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
|
2024-02-29 22:23:57 +03:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-02-14 05:46:55 +03:00
|
|
|
name: Scorecard supply-chain security
|
|
|
|
on:
|
|
|
|
branch_protection_rule:
|
|
|
|
schedule:
|
|
|
|
- cron: '32 23 * * 4'
|
|
|
|
push:
|
|
|
|
branches: [ "main", "master" ]
|
|
|
|
|
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
2023-06-08 10:39:36 +03:00
|
|
|
concurrency:
|
|
|
|
group: scorecard-supply-chain-security-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-02-14 05:46:55 +03:00
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
name: Scorecard analysis
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
# Needed to upload the results to code-scanning dashboard.
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout code"
|
2024-10-23 18:53:06 +03:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-02-14 05:46:55 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: "Run analysis"
|
2024-07-26 21:18:57 +03:00
|
|
|
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
|
2023-02-14 05:46:55 +03:00
|
|
|
with:
|
|
|
|
results_file: results.sarif
|
|
|
|
results_format: sarif
|
|
|
|
publish_results: false
|
|
|
|
|
|
|
|
# Upload the results to GitHub's code scanning dashboard.
|
|
|
|
- name: "Upload to code-scanning"
|
2024-11-08 22:06:37 +03:00
|
|
|
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1
|
2023-02-14 05:46:55 +03:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|