diff --git a/.github/workflows/fossa-default.yml b/.github/workflows/fossa-default.yml index 9a36be8..a5dd71d 100644 --- a/.github/workflows/fossa-default.yml +++ b/.github/workflows/fossa-default.yml @@ -58,6 +58,16 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/orgs/$ORG/properties/values \ -d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaHasTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}' + - name: Set fossaAnalyzeResult custom property to N/A + if: ${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS == 'false'}} + run: | + curl -L \ + -X PATCH \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $CUSTOM_PROPS_PAT" \ + -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":"'"N/A"'"}]}' - id: fossa-analyze name: Run fossa analyze if: ${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS == 'True'}}