From 3f34b17e6eec4000e5b73c8320e790920773fcca Mon Sep 17 00:00:00 2001 From: Izar Tarandach Date: Tue, 24 Jan 2023 11:57:11 -0500 Subject: [PATCH 1/3] Limit permissions --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 683b5cc..083ea62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,8 @@ on: pull_request: branches: [ master ] +permissions: + contents: read # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" From 0b0d912b7c2349c92d9af526883c283141a6c5b2 Mon Sep 17 00:00:00 2001 From: Izar Tarandach Date: Tue, 24 Jan 2023 12:23:56 -0500 Subject: [PATCH 2/3] More Scorecard fixes. --- .github/workflows/codeql-analysis.yml | 9 +++++++++ SECURITY.md | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 SECURITY.md diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ca40fa8..58f54d6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,8 +14,15 @@ on: schedule: - cron: '0 15 * * 3' +permissions: # added using https://github.com/step-security/secure-workflows + contents: read + jobs: analyze: + permissions: + actions: read # for github/codeql-action/init to get workflow details + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/autobuild to send a status report name: Analyze runs-on: ubuntu-latest @@ -64,3 +71,5 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 + + diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..fb55b81 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,4 @@ +Reporting a Vulnerability +Please report (suspected) security vulnerabilities as a project issue. You will receive a response from us within 48 hours. If the issue is confirmed, we will release a patch as soon as possible depending on complexity but historically within a few days. + + From 13c22196014b8cb648730501c4ff7dff3cc7f62e Mon Sep 17 00:00:00 2001 From: Izar Tarandach Date: Tue, 24 Jan 2023 12:34:27 -0500 Subject: [PATCH 3/3] On with the times. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 083ea62..00257ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.9, 3.10, 3.11, 3.12] # Steps represent a sequence of tasks that will be executed as part of the job steps: