ryantimwilson / rpms / systemd

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