Skip to content

Commit 5a1c24d

Browse files
authored
meta(gha): Deploy workflow enforce-license-compliance.yml (#4831)
1 parent c48408d commit 5a1c24d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,28 @@ jobs:
1010
enforce-license-compliance:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: "Fetch FOSSA_API_KEY"
13+
- name: 'Fetch FOSSA_API_KEY'
1414
id: fetch_key
1515
run: |
16+
17+
# We can't use GitHub Secrets for this key because we want it to be
18+
# available in forks. This is a push-only key for a low-privilege
19+
# account, so it is safe (enough) to expose publicly. This is a hack
20+
# to set it in one place in case we ever do need to roll it. 🤷
21+
1622
curl -O https://raw.githubusercontent.com/getsentry/.github/main/.github/workflows/FOSSA_API_KEY
17-
echo "::set-output name=FOSSA_API_KEY::$(cat FOSSA_API_KEY)"
23+
echo "::set-output name=key::$(cat FOSSA_API_KEY | grep -v '#')"
1824
19-
- name: "Checkout Code"
25+
- name: 'Checkout Code'
2026
uses: actions/checkout@v2
2127

22-
- name: "Run FOSSA Scan"
28+
- name: 'Run FOSSA Scan'
2329
uses: fossas/[email protected]
2430
with:
25-
api-key: ${{ steps.fetch_key.outputs.FOSSA_API_KEY }}
31+
api-key: ${{ steps.fetch_key.outputs.key }}
2632

27-
- name: "Run FOSSA Test"
33+
- name: 'Run FOSSA Test'
2834
uses: fossas/[email protected]
2935
with:
30-
api-key: ${{ steps.fetch_key.outputs.FOSSA_API_KEY }}
36+
api-key: ${{ steps.fetch_key.outputs.key }}
3137
run-tests: true

0 commit comments

Comments
 (0)