Skip to content

Commit

Permalink
Merge pull request #8 from newrelic-csec/setup-action-per-repo
Browse files Browse the repository at this point in the history
Setup action per repo
  • Loading branch information
elaguerta-nr authored Mar 6, 2024
2 parents cf843f3 + 180b124 commit 9d194a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/fossa-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3
steps:
- name: Checkout this repo
uses: actions/checkout@v4
- name: Run the specified Setup Build Action
uses: ./.github/actions/setup-environment
- id: fossa-list-targets
name: Run fossa list-targets
name: Run fossa list-targets
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
export LIST_TARGETS_OUT_FILE=${{ runner.temp }}/list-targets_out.txt
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/$ORG/properties/values \
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'
- name: Exit
- name: Exit
if: ${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS == 'Error' || steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT == 'Error' }}
run: exit 1

0 comments on commit 9d194a0

Please sign in to comment.