From acfddefcf539f888632e03baaa26f60613890510 Mon Sep 17 00:00:00 2001 From: elaguerta-nr <148913307+elaguerta-nr@users.noreply.github.com> Date: Fri, 17 May 2024 11:15:04 -0700 Subject: [PATCH] Update fossa-default.yml --- .github/workflows/fossa-default.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fossa-default.yml b/.github/workflows/fossa-default.yml index c746387..5fe0e8d 100644 --- a/.github/workflows/fossa-default.yml +++ b/.github/workflows/fossa-default.yml @@ -7,15 +7,22 @@ on: workflow_dispatch: jobs: + check_env: + runs-on: ubuntu-latest + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY || ''}} + outputs: + FOSSA_API_KEY: $FOSSA_API_KEY + fossa: - if: ${{ secrets.FOSSA_API_KEY != ''}} + needs: check_env + if: ${{ needs.check_env.FOSSA_API_KEY != '' }} runs-on: ubuntu-latest env: - FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}} + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY}} ORG: ${{ github.repository_owner }} REPO: ${{ github.repository }} CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }} - strategy: fail-fast: false