From 7b48c48f733d4c4bddc984c3f17103f9dfbefe7f Mon Sep 17 00:00:00 2001 From: Gagan H R <92567822+gaganhr94@users.noreply.github.com> Date: Wed, 4 Feb 2026 22:05:35 +0530 Subject: [PATCH 1/2] feat: add scorecard workflow for supply-chain security --- .github/workflows/scorecard.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/scorecard.yml diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 00000000000000..d2ffa38066c25b --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,42 @@ +name: Scorecard supply-chain security +on: + push: + branches: [ master ] + schedule: + - cron: '30 1 * * 6' + +permissions: + contents: read + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + security-events: write + id-token: write + + steps: + - name: "Checkout code" + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 + with: + persist-credentials: false + + - name: "Run analysis" + uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a #v2.4.3 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + - name: "Upload artifact" + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f #v6.0.0 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@6bc82e05fd0ea64601dd4b465378bbcf57de0314 #v4.32.1 + with: + sarif_file: results.sarif From 1d24df3561337e2bb04e1545df31e8bdf5c741b8 Mon Sep 17 00:00:00 2001 From: Gagan H R <92567822+gaganhr94@users.noreply.github.com> Date: Thu, 5 Feb 2026 20:30:13 +0530 Subject: [PATCH 2/2] Change permissions to read-all in scorecard.yml --- .github/workflows/scorecard.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index d2ffa38066c25b..6ecd13323079e4 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -5,8 +5,7 @@ on: schedule: - cron: '30 1 * * 6' -permissions: - contents: read +permissions: read-all jobs: analysis: