Skip to content

Commit

Permalink
If targets found, remove zeroFossaTargets custom property
Browse files Browse the repository at this point in the history
  • Loading branch information
elaguerta-nr authored Nov 2, 2023
1 parent 0a9a823 commit fe24cf5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
then
printf -- "%s\n" "$output"
fossa analyze
curl -L \
-X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/${{ github.repository_owner }}/properties/values \
-d '{"repository_names":[${{ github.repository }}],"properties":[{"property_name":"zeroFossaTargets","value":"null"}]}'
else
curl -L \
-X PATCH \
Expand Down

0 comments on commit fe24cf5

Please sign in to comment.