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"
|
2023-10-18 11:09:08 +03:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-02-14 05:46:55 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: "Run analysis"
|
2023-10-24 11:47:19 +03:00
|
|
|
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
|
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-04-15 15:42:13 +03:00
|
|
|
uses: github/codeql-action/upload-sarif@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0
|
2023-02-14 05:46:55 +03:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|