Skip to content

Commit

Permalink
replace hardcoded org with github event context
Browse files Browse the repository at this point in the history
  • Loading branch information
elaguerta-nr committed May 27, 2024
1 parent fce066b commit 88a8423
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fossa-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
branches: [ $default-branch ]
workflow_call:

env:
WORKFLOW_ORG: ${{ github.event.organization }}

jobs:
check_env:
uses: newrelic-csec/.github/.github/workflows/fossa-check-env.yml@reusable
uses: ${{ env.WORKFLOW_ORG }}/.github/.github/workflows/fossa-check-env.yml@reusable

fossa:
needs: check_env
Expand All @@ -23,4 +26,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- id: fossa-cli
uses: newrelic-csec/.github/.github/composite/fossa-composite@reusable
uses: ${{ env.WORKFLOW_ORG }}/.github/.github/composite/fossa-composite@reusable

0 comments on commit 88a8423

Please sign in to comment.