Skip to content

Commit 137c928

Browse files
authored
Factor FOSSA out into a separate action (#4894)
1 parent c241feb commit 137c928

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/enforce-license-compliance.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,7 @@ on:
88

99
jobs:
1010
enforce-license-compliance:
11-
if: github.repository_owner == 'getsentry'
1211
runs-on: ubuntu-latest
1312
steps:
14-
- name: 'Fetch FOSSA_API_KEY'
15-
id: fetch_key
16-
run: |
17-
18-
# We can't use GitHub Secrets for this key because we want it to be
19-
# available in forks. This is a push-only key for a low-privilege
20-
# account, so it is safe (enough) to expose publicly. This is a hack
21-
# to set it in one place in case we ever do need to roll it. 🤷
22-
23-
curl -O https://raw.githubusercontent.com/getsentry/.github/main/.github/workflows/FOSSA_API_KEY
24-
echo "::set-output name=key::$(cat FOSSA_API_KEY | grep -v '#')"
25-
26-
- name: 'Checkout Code'
27-
uses: actions/checkout@v2
28-
29-
- name: 'Run FOSSA Scan'
30-
uses: fossas/[email protected]
31-
with:
32-
api-key: ${{ steps.fetch_key.outputs.key }}
33-
34-
- name: 'Run FOSSA Test'
35-
uses: fossas/[email protected]
36-
with:
37-
api-key: ${{ steps.fetch_key.outputs.key }}
38-
run-tests: true
13+
- name: 'Enforce License Compliance'
14+
uses: getsentry/action-enforce-license-compliance@main

0 commit comments

Comments
 (0)