Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .semaphore/fossa_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v1.0
name: Run Fossa Scan

agent:
machine:
type: f1-standard-2
os_image: ubuntu2204

execution_time_limit:
minutes: 30

blocks:
- name: "Trigger Fossa Scan"
skip:
# Only run on master or release branches, not PRs.
when: "(branch =~ 'master|release-.*') and (branch !~ '.+')"
dependencies: []
task:
prologue:
commands:
- "curl -fsSLH 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash"
- checkout
- retry git fetch --unshallow
jobs:
- name: "FOSSA scan"
commands:
- fossa analyze
secrets:
- name: foss-api-key
4 changes: 4 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ promotions:
pipeline_file: release.yml
auto_promote:
when: "result = 'passed' AND tag =~ '^v'"
- name: Run Fossa scan
pipeline_file: fossa_scan.yml
auto_promote:
when: "branch =~ 'master|release-.*'"
- name: Clean Up
pipeline_file: clean_up.yml
# Don't auto promote if this is master or a release branch so the cache is available for the Push Images pipeline.
Expand Down