|
|
2aacef |
From e28f0b746d630230cf6256215f9388de7f3f6dd7 Mon Sep 17 00:00:00 2001
|
|
|
2aacef |
From: Jan Macku <jamacku@redhat.com>
|
|
|
2aacef |
Date: Thu, 8 Dec 2022 16:00:58 +0100
|
|
|
2aacef |
Subject: [PATCH] ci: Drop scorecards workflow, not relevant
|
|
|
2aacef |
|
|
|
2aacef |
rhel-only
|
|
|
2aacef |
|
|
|
2aacef |
Related: #2138081
|
|
|
2aacef |
---
|
|
|
2aacef |
.github/workflows/scorecards.yml | 70 --------------------------------
|
|
|
2aacef |
1 file changed, 70 deletions(-)
|
|
|
2aacef |
delete mode 100644 .github/workflows/scorecards.yml
|
|
|
2aacef |
|
|
|
2aacef |
diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml
|
|
|
2aacef |
deleted file mode 100644
|
|
|
2aacef |
index 911ac5a35e..0000000000
|
|
|
2aacef |
--- a/.github/workflows/scorecards.yml
|
|
|
2aacef |
+++ /dev/null
|
|
|
2aacef |
@@ -1,70 +0,0 @@
|
|
|
2aacef |
----
|
|
|
2aacef |
-# vi: ts=2 sw=2 et:
|
|
|
2aacef |
-# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
2aacef |
-name: Scorecards supply-chain security
|
|
|
2aacef |
-on:
|
|
|
2aacef |
- # Only the default branch is supported.
|
|
|
2aacef |
- branch_protection_rule:
|
|
|
2aacef |
- schedule:
|
|
|
2aacef |
- - cron: '15 21 * * 6'
|
|
|
2aacef |
- push:
|
|
|
2aacef |
- branches:
|
|
|
2aacef |
- - main
|
|
|
2aacef |
- pull_request:
|
|
|
2aacef |
- branches:
|
|
|
2aacef |
- - main
|
|
|
2aacef |
- paths:
|
|
|
2aacef |
- - '.github/workflows/scorecards.yml'
|
|
|
2aacef |
-
|
|
|
2aacef |
-# Declare default permissions as read only.
|
|
|
2aacef |
-permissions: read-all
|
|
|
2aacef |
-
|
|
|
2aacef |
-jobs:
|
|
|
2aacef |
- analysis:
|
|
|
2aacef |
- name: Scorecards analysis
|
|
|
2aacef |
- if: github.repository == 'systemd/systemd'
|
|
|
2aacef |
- runs-on: ubuntu-latest
|
|
|
2aacef |
- permissions:
|
|
|
2aacef |
- # Needed to upload the results to code-scanning dashboard.
|
|
|
2aacef |
- security-events: write
|
|
|
2aacef |
- # Used to receive a badge.
|
|
|
2aacef |
- id-token: write
|
|
|
2aacef |
-
|
|
|
2aacef |
- steps:
|
|
|
2aacef |
- - name: Checkout code
|
|
|
2aacef |
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3.0.0
|
|
|
2aacef |
- with:
|
|
|
2aacef |
- persist-credentials: false
|
|
|
2aacef |
-
|
|
|
2aacef |
- - name: Run analysis
|
|
|
2aacef |
- uses: ossf/scorecard-action@e363bfca00e752f91de7b7d2a77340e2e523cb18 # tag=v2.0.4
|
|
|
2aacef |
- with:
|
|
|
2aacef |
- results_file: results.sarif
|
|
|
2aacef |
- results_format: sarif
|
|
|
2aacef |
- # (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
|
|
|
2aacef |
- # - you want to enable the Branch-Protection check on a *public* repository, or
|
|
|
2aacef |
- # - you are installing Scorecards on a *private* repository
|
|
|
2aacef |
- # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
|
|
|
2aacef |
- # repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
|
|
|
2aacef |
-
|
|
|
2aacef |
- # Publish the results for public repositories to enable scorecard badges. For more details, see
|
|
|
2aacef |
- # https://github.com/ossf/scorecard-action#publishing-results.
|
|
|
2aacef |
- # For private repositories, `publish_results` will automatically be set to `false`, regardless
|
|
|
2aacef |
- # of the value entered here.
|
|
|
2aacef |
- publish_results: ${{ github.event_name != 'pull_request' }}
|
|
|
2aacef |
-
|
|
|
2aacef |
- # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
|
|
2aacef |
- # format to the repository Actions tab.
|
|
|
2aacef |
- - name: Upload artifact
|
|
|
2aacef |
- uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # tag=v3.0.0
|
|
|
2aacef |
- with:
|
|
|
2aacef |
- name: SARIF file
|
|
|
2aacef |
- path: results.sarif
|
|
|
2aacef |
- retention-days: 5
|
|
|
2aacef |
-
|
|
|
2aacef |
- # Upload the results to GitHub's code scanning dashboard.
|
|
|
2aacef |
- - name: Upload to code-scanning
|
|
|
2aacef |
- if: github.event_name != 'pull_request'
|
|
|
2aacef |
- uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # tag=v1.0.26
|
|
|
2aacef |
- with:
|
|
|
2aacef |
- sarif_file: results.sarif
|