Skip to content

replace hardcoded org with github event context #5

replace hardcoded org with github event context

replace hardcoded org with github event context #5

Workflow file for this run

name: FOSSA CLI Analysis - Default
on:
pull_request:
branches: [ $default-branch ]
workflow_call:
env:
WORKFLOW_ORG: ${{ github.event.organization }}
jobs:
check_env:
uses: ${{ env.WORKFLOW_ORG }}/.github/.github/workflows/fossa-check-env.yml@reusable

Check failure on line 12 in .github/workflows/fossa-default.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fossa-default.yml

Invalid workflow file

invalid value workflow reference: owner name must be a valid repository owner name
fossa:
needs: check_env
if: ${{ needs.check_env.outputs.HAS_FOSSA_API_KEY == 'true' }}
runs-on: ubuntu-latest
env:
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
ORG: ${{ github.repository_owner }}
REPO: ${{ github.repository }}
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
HAS_FOSSA_TARGETS: ""
FOSSA_ANALYZE_RESULT: ""
steps:
- uses: actions/checkout@v3
- id: fossa-cli
uses: ${{ env.WORKFLOW_ORG }}/.github/.github/composite/fossa-composite@reusable