From 8c7ca6e7fbde27ee24ce88a293a52bcb7864b6b4 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Tue, 24 Nov 2026 15:31:30 +0800 Subject: [PATCH] ci: least-privilege permissions on assets.yml; add email to SECURITY.md (OpenSSF Scorecard) assets.yml: restore workflow_dispatch (with its tag input) to the on: block - it was incorrectly nested inside permissions:, so manual dispatch never worked and permissions carried a non-standard key. Grant contents: write at the job level only; top level drops to contents: read. SECURITY.md: add the open.source@ribose.com reporting channel used by the sibling repos (Scorecard Security-Policy partial -> full). Clears the Token-Permissions findings from OpenSSF Scorecard. --- .github/workflows/assets.yml | 8 +++++--- SECURITY.md | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index fcfd9db8..daf56956 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -4,9 +4,6 @@ on: push: tags: - 'v*' - -permissions: - contents: write workflow_dispatch: inputs: tag: @@ -14,10 +11,15 @@ permissions: required: false type: string +permissions: + contents: read + jobs: assets: if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest + permissions: + contents: write env: BUNDLE_WITHOUT: "jsexec" SKIP_JS: "1" diff --git a/SECURITY.md b/SECURITY.md index 0cf5bbd9..18d0fbac 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,10 +7,12 @@ tagged release of this software. ## Reporting a vulnerability -Please report vulnerabilities privately to the maintainers via the -GitHub security advisories feature of this repository -(Security → Report a vulnerability). Do not open public issues for -suspected vulnerabilities. +Please report vulnerabilities privately to the maintainers via one of: + +- **GitHub security advisories** — Security tab → "Report a vulnerability" (preferred) +- **Email** — open.source@ribose.com + +Do not open public issues for suspected vulnerabilities. Reports are acknowledged within 72 hours. This API executes no client-supplied code and stores no user data; transliteration inputs