Skip to content

Commit 3d952df

Browse files
committed
ci: ensure FOSSA scan runs only on the upstream
1 parent e629f97 commit 3d952df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/fossa.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
- push
66

77
jobs:
8-
build:
8+
fossa:
9+
# This job is only useful when run on upstream
10+
if: github.repository == 'nginxinc/ngx-rust' || github.event_name == 'workflow_dispatch'
11+
name: FOSSA scan
912
runs-on: ubuntu-latest
10-
1113
steps:
1214
- name: Checkout code
13-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1416

1517
- name: Run FOSSA scan and upload build data
1618
uses: fossa-contrib/fossa-action@v1

0 commit comments

Comments
 (0)