From 78af1f9bdd905d0c6584fc6815de5bd942f4e4de Mon Sep 17 00:00:00 2001 From: shuaiplus <2327005759@qq.com> Date: Tue, 30 Jun 2026 13:14:23 +0800 Subject: [PATCH] ci: skip scorecard outside main --- .github/workflows/security-extra.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/security-extra.yml b/.github/workflows/security-extra.yml index 6bb9015..d3d1b85 100644 --- a/.github/workflows/security-extra.yml +++ b/.github/workflows/security-extra.yml @@ -174,6 +174,7 @@ jobs: scorecard: name: OpenSSF Scorecard runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' permissions: contents: read @@ -196,4 +197,4 @@ jobs: uses: github/codeql-action/upload-sarif@v4 with: sarif_file: scorecard.sarif - category: openssf-scorecard \ No newline at end of file + category: openssf-scorecard