Skip to content

Commit

Permalink
Use a custom action (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre authored Apr 1, 2022
1 parent f5d7a44 commit 7d7cb49
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,7 @@ on:

jobs:
enforce-license-compliance:
if: github.repository_owner == 'getsentry'
runs-on: ubuntu-latest
steps:
- name: 'Fetch FOSSA_API_KEY'
id: fetch_key
run: |
# We can't use GitHub Secrets for this key because we want it to be
# available in forks. This is a push-only key for a low-privilege
# account, so it is safe (enough) to expose publicly. This is a hack
# to set it in one place in case we ever do need to roll it. 🤷
curl -O https://raw.githubusercontent.com/getsentry/.github/main/.github/workflows/FOSSA_API_KEY
echo "::set-output name=key::$(cat FOSSA_API_KEY | grep -v '#')"
- name: 'Checkout Code'
uses: actions/checkout@v2

- name: 'Run FOSSA Scan'
uses: fossas/[email protected]
with:
api-key: ${{ steps.fetch_key.outputs.key }}

- name: 'Run FOSSA Test'
uses: fossas/[email protected]
with:
api-key: ${{ steps.fetch_key.outputs.key }}
run-tests: true
- name: 'Enforce License Compliance'
uses: getsentry/action-enforce-license-compliance@main

0 comments on commit 7d7cb49

Please sign in to comment.