From d0504c5a77655042bbc7184b8302459e3c8733c7 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Tue, 24 Nov 2026 15:32:43 +0800 Subject: [PATCH] ci: least-privilege permissions blocks; add SECURITY.md (OpenSSF Scorecard) release.yml and test.yml declare explicit top-level contents: read (release.yml's job-level id-token: write for PyPI trusted publishing is kept). Adds a SECURITY.md with the reporting channels used by the sibling repos. Clears the Token-Permissions and Security-Policy findings from OpenSSF Scorecard. --- .github/workflows/release.yml | 3 +++ .github/workflows/test.yml | 3 +++ SECURITY.md | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 SECURITY.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d12a9cf..d895f8d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: - "v*" workflow_dispatch: +permissions: + contents: read + jobs: release: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3ceb96..26f1e1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: branches: [main] pull_request: {} +permissions: + contents: read + jobs: test: name: PyTest (${{ matrix.os }}, ${{ matrix.python }}) diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..4c1f49b --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,20 @@ +# Security Policy + +## Supported Versions + +The latest released version of this project receives security fixes. + +## Reporting a Vulnerability + +Please **do not** open public GitHub issues for security vulnerabilities. + +Report privately via one of: + +- **GitHub Security Advisories** — Security tab → "Report a vulnerability" (preferred) +- **Email** — open.source@ribose.com + +We acknowledge reports within 72 hours and aim to ship a fix within 30 days for critical issues. Coordinated disclosure is supported. + +## Disclosure + +Public disclosure happens after a fix is released, on a timeline agreed with the reporter.