From 527d969d40ecca3fe7c3f99bfdd20e866f99d9b1 Mon Sep 17 00:00:00 2001 From: Ali AKCA Date: Tue, 18 Feb 2025 08:52:29 +0100 Subject: [PATCH 1/2] ci: run FOSSA tests on pull request --- .github/workflows/fossa.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fossa.yaml b/.github/workflows/fossa.yaml index 7f0f95c8..e43574ca 100644 --- a/.github/workflows/fossa.yaml +++ b/.github/workflows/fossa.yaml @@ -13,7 +13,18 @@ jobs: fossa-scan: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: fossas/fossa-action@v1 + - uses: actions/checkout@v4 + + - name: FOSSA Scan + uses: fossas/fossa-action@v1 with: api-key: ${{ secrets.FOSSA_API_KEY }} + + - name: FOSSA Test + uses: fossas/fossa-action@v1 + id: fossa-test + if: ${{ github.event_name == 'pull_request' }} + with: + api-key: ${{ secrets.FOSSA_PR_REPORT_API_KEY }} + run-tests: true + test-diff-revision: ${{ github.event.pull_request.base.sha }} From 33aa5a6d476fd0544ffa156886f4f6e62b89ceb4 Mon Sep 17 00:00:00 2001 From: Ali AKCA Date: Tue, 18 Feb 2025 13:08:39 +0100 Subject: [PATCH 2/2] fixup! ci: run FOSSA tests on pull request --- .github/workflows/fossa.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fossa.yaml b/.github/workflows/fossa.yaml index e43574ca..b01ea951 100644 --- a/.github/workflows/fossa.yaml +++ b/.github/workflows/fossa.yaml @@ -25,6 +25,6 @@ jobs: id: fossa-test if: ${{ github.event_name == 'pull_request' }} with: - api-key: ${{ secrets.FOSSA_PR_REPORT_API_KEY }} + api-key: ${{ secrets.FOSSA_API_KEY }} run-tests: true test-diff-revision: ${{ github.event.pull_request.base.sha }}