From f3144b2d388ee04ed0aa5137a19ecfd9549fd20e Mon Sep 17 00:00:00 2001 From: carlewis Date: Fri, 31 May 2024 13:11:14 +0100 Subject: [PATCH] Enable dependabot updates of github actions and OpenSSF code scan (#78) * [CP-Sec] Enable dependabot rule for github-actions * [CP-Sec] Enable support for OSSF Scorecard --- .github/dependabot.yml | 14 +++++++++ .github/workflows/scorecard.yml | 53 +++++++++++++++++++++++++++++++++ README-sycl.md | 2 ++ 3 files changed, 69 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/scorecard.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..ec48d0d2bb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ + +version: 2 +updates: +# Enable version updates for Github Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + github-actions: + patterns: + - "*" + reviewers: + - "codeplaysoftware/security-managers" diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000000..e742840395 --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,53 @@ +# Scorecards' GitHub action + +name: Scorecard supply-chain security +on: + # For Branch-Protection check. Only the default branch is supported. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection + branch_protection_rule: + schedule: + - cron: '18 16 * * 3' + push: + branches: [ "sycl-develop" ] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + # Needed to upload the results to code-scanning dashboard. + security-events: write + # Needed to publish results and get a badge (see publish_results below). + id-token: write + + steps: + - name: "Checkout code" + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + persist-credentials: false + + - name: "Run analysis" + uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF + # format to the repository Actions tab. + - name: "Upload artifact" + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + # Commenting out will disable upload of results to your repo's Code Scanning dashboard + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9 + with: + sarif_file: results.sarif diff --git a/README-sycl.md b/README-sycl.md index 3b412fb954..3d59a7bdc8 100644 --- a/README-sycl.md +++ b/README-sycl.md @@ -1,5 +1,7 @@ # SYCL support for CUTLASS +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/codeplaysoftware/cutlass-fork/badge)](https://scorecard.dev/viewer/?uri=github.com/codeplaysoftware/cutlass-fork) + This repository contains a development version of the CUTLASS repository with experimental SYCL support enabled. The aim is to support other SYCL-enabled devices with the minimal source code modifications by using the same CUTLASS features.