mirror of
https://github.com/appium/appium.git
synced 2026-01-05 09:50:17 -06:00
ci: Only run FOSSA checks on the main repo (#20696)
This commit is contained in:
13
.github/workflows/fossa.yml
vendored
13
.github/workflows/fossa.yml
vendored
@@ -10,17 +10,24 @@ jobs:
|
||||
fossa-check:
|
||||
name: Run FOSSA Analysis
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
|
||||
steps:
|
||||
- name: Ignore forks
|
||||
run: |
|
||||
if [ -z "$FOSSA_API_KEY" ]; then
|
||||
echo "FOSSA_API_KEY is empty. Is the job running in a forked repository?"
|
||||
exit 0
|
||||
fi
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: master
|
||||
- name: Install dependencies
|
||||
uses: bahmutov/npm-install@v1
|
||||
- name: Install fossa-cli
|
||||
run: ./scripts/install-fossa.sh -d
|
||||
run: |
|
||||
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
|
||||
- name: Run FOSSA analysis
|
||||
run: |
|
||||
fossa analyze
|
||||
fossa test
|
||||
env:
|
||||
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
|
||||
|
||||
Reference in New Issue
Block a user