Skip to content

Commit fc5b6d0

Browse files
authored
CI: Use FOSSA push-only token for license scans on PRs (#15222)
Signed-off-by: Matt Lord <mattalord@gmail.com>
1 parent a404807 commit fc5b6d0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/static_checks_etc.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@ jobs:
3434
uses: actions/checkout@v3
3535

3636
- name: Run FOSSA scan and upload build data
37-
# Fails on pull requests when using the API key secret.
38-
# In order to run it on pull requests we would need to
39-
# generate a push only token and specify that as plain
40-
# text here:
41-
# https://github.com/fossa-contrib/fossa-action#push-only-api-token
42-
# BUT, it also requires that the fork have its own
43-
# independent integration setup with fossa.com.
44-
if: github.ref == 'refs/heads/main'
4537
uses: fossa-contrib/fossa-action@v3
4638
with:
47-
fossa-api-key: ${{ secrets.FOSSA_API_KEY }}
39+
# This is a push-only API token: https://github.com/fossa-contrib/fossa-action#push-only-api-token
40+
fossa-api-key: f62c11ef0c249fef239947f01279aa0f
41+
github-token: ${{ github.token }}
4842

4943
- name: Check for changes in Go files
5044
if: steps.skip-workflow.outputs.skip-workflow == 'false'

0 commit comments

Comments
 (0)