Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta(gha): Deploy workflow enforce-license-compliance.yml #1375

Merged
merged 1 commit into from
Mar 14, 2022
Merged
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
16 changes: 14 additions & 2 deletions .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,28 @@ jobs:
enforce-license-compliance:
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: ${{secrets.FOSSA_API_KEY}}
api-key: ${{ steps.fetch_key.outputs.key }}

- name: 'Run FOSSA Test'
uses: fossas/[email protected]
with:
api-key: ${{secrets.FOSSA_API_KEY}}
api-key: ${{ steps.fetch_key.outputs.key }}
run-tests: true