File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,28 @@ jobs:
10
10
enforce-license-compliance :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : " Fetch FOSSA_API_KEY"
13
+ - name : ' Fetch FOSSA_API_KEY'
14
14
id : fetch_key
15
15
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
+
16
22
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 '#' )"
18
24
19
- - name : " Checkout Code"
25
+ - name : ' Checkout Code'
20
26
uses : actions/checkout@v2
21
27
22
- - name : " Run FOSSA Scan"
28
+ - name : ' Run FOSSA Scan'
23
29
24
30
with :
25
- api-key : ${{ steps.fetch_key.outputs.FOSSA_API_KEY }}
31
+ api-key : ${{ steps.fetch_key.outputs.key }}
26
32
27
- - name : " Run FOSSA Test"
33
+ - name : ' Run FOSSA Test'
28
34
29
35
with :
30
- api-key : ${{ steps.fetch_key.outputs.FOSSA_API_KEY }}
36
+ api-key : ${{ steps.fetch_key.outputs.key }}
31
37
run-tests : true
You can’t perform that action at this time.
0 commit comments