From 2550e9d62424a92291db52687c6575dcd1e261ea Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 12 Nov 2024 19:40:06 +0200 Subject: [PATCH 1/3] Create scorecard.yml --- .github/workflows/scorecard.yml | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 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 00000000..03c9f0b4 --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,47 @@ +name: Scorecard +on: + # To guarantee Maintained check is occasionally updated. See + # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained + schedule: + - cron: '24 3 * * 1' + push: + branches: [ "main" ] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + analysis: + name: 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@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + - name: Upload results + uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + # Upload the results to GitHub's code scanning dashboard (optional). + - name: "Upload to code-scanning" + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: results.sarif From 724fe102d4f859948d469433f15394cae8a5d867 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 12 Nov 2024 19:46:39 +0200 Subject: [PATCH 2/3] PG-1203 Add OSSF Scorecard badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f4340cdc..ede5e35f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/percona/pg_tde/badge)](https://scorecard.dev/viewer/?uri=github.com/percona/pg_tde) [![Forum](https://img.shields.io/badge/Forum-join-brightgreen)](https://forums.percona.com/) # pg_tde: Transparent Database Encryption for PostgreSQL From 21906703ad647f0f2cc7b56f0d0f71a94ba22d64 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Tue, 12 Nov 2024 20:02:06 +0200 Subject: [PATCH 3/3] PG-1203 Format --- .github/workflows/scorecard.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 03c9f0b4..cb2777b6 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -3,9 +3,10 @@ on: # To guarantee Maintained check is occasionally updated. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained schedule: - - cron: '24 3 * * 1' + - cron: "24 3 * * 1" push: - branches: [ "main" ] + branches: + - main # Declare default permissions as read only. permissions: read-all