From 1733fe1186e60ab9eec841fff18cc76b24217ea8 Mon Sep 17 00:00:00 2001 From: Hardy Nguyen Date: Wed, 5 Aug 2026 13:37:15 +0700 Subject: [PATCH] ci: simplify publish results condition in ossf-scorecard workflow --- .github/workflows/ossf-scorecard.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index b9abea39..c053e7c8 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -17,12 +17,6 @@ on: # │ │ │ │ │ - cron: "3 4 * * 2" workflow_dispatch: - inputs: - publish_results: - description: "Set to true to publish results. Only works when run from the default branch." - required: false - type: boolean - default: true concurrency: group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" @@ -54,7 +48,7 @@ jobs: with: results_file: results.sarif results_format: sarif - publish_results: ${{ inputs.publish_results && github.ref_name == github.event.repository.default_branch }} + publish_results: ${{ github.ref_name == github.event.repository.default_branch }} - name: Upload artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1