Skip to content

Commit 541ebca

Browse files
committed
ci: drop --branch from FOSSA test step
The fossa-action forwards the branch input to `fossa test`, but that subcommand has no --branch option (only `fossa analyze` does), so the policy-gate step failed with "Invalid option `--branch'". `fossa test` resolves the revision by VCS hash on its own, so the input is omitted. jira: trivial risk: nonprod
1 parent c082286 commit 541ebca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/fossa.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ jobs:
6969
api-key: ${{ secrets.FOSSA_API_KEY }}
7070
branch: ${{ inputs.branch != '' && inputs.branch || github.ref_name }}
7171

72+
# `fossa test` resolves the revision by VCS hash and does not accept a
73+
# --branch flag (only `fossa analyze` does), so the branch input is
74+
# intentionally omitted here to avoid an "Invalid option `--branch'" error.
7275
- name: Run FOSSA test (policy gate)
7376
uses: fossas/fossa-action@v1.9.0
7477
with:
7578
api-key: ${{ secrets.FOSSA_API_KEY }}
7679
run-tests: true
77-
branch: ${{ inputs.branch != '' && inputs.branch || github.ref_name }}

0 commit comments

Comments
 (0)