Skip to content

Commit

Permalink
Add diff scans
Browse files Browse the repository at this point in the history
  • Loading branch information
rajuljha committed Jun 30, 2024
1 parent 6f5853b commit 2ad3a54
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/fossology-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ jobs:
-e GITHUB_ACTIONS \
rjknightmare/fo-ci-test:latest "/bin/fossologyscanner" nomos ojo
- name: Run fossology scanner with differential mode
if: ${{ vars.FROM_TAG != '' }} && ${{ vars.TO_TAG != '' }}
run : |
docker run --rm --name "fossologyscanner" -w "/opt/repo" -v ${PWD}:/opt/repo \
-e GITHUB_TOKEN=${{ github.token }} \
-e GITHUB_PULL_REQUEST=${{ github.event.number }} \
-e GITHUB_REPOSITORY=${{ github.repository }} \
-e GITHUB_API=${{ github.api_url }} \
-e GITHUB_REPO_URL=${{ github.repositoryUrl }} \
-e GITHUB_REPO_OWNER=${{ github.repository_owner }} \
-e GITHUB_ACTIONS \
rjknightmare/fo-ci-test:latest "/bin/fossologyscanner" nomos ojo \
differential --tags ${{ vars.FROM_TAG }} ${{ vars.TO_TAG }}
check-copyright:
name: Check copyright
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -63,3 +77,17 @@ jobs:
-e GITHUB_REPO_OWNER=${{ github.repository_owner }} \
-e GITHUB_ACTIONS \
rjknightmare/fo-ci-test:latest "/bin/fossologyscanner" copyright keyword
- name: Run fossology scanner with differential mode
if: ${{ vars.FROM_TAG != '' }} && ${{ vars.TO_TAG != '' }}
run : |
docker run --rm --name "fossologyscanner" -w "/opt/repo" -v ${PWD}:/opt/repo \
-e GITHUB_TOKEN=${{ github.token }} \
-e GITHUB_PULL_REQUEST=${{ github.event.number }} \
-e GITHUB_REPOSITORY=${{ github.repository }} \
-e GITHUB_API=${{ github.api_url }} \
-e GITHUB_REPO_URL=${{ github.repositoryUrl }} \
-e GITHUB_REPO_OWNER=${{ github.repository_owner }} \
-e GITHUB_ACTIONS \
rjknightmare/fo-ci-test:latest "/bin/fossologyscanner" copyright keyword \
differential --tags ${{ vars.FROM_TAG }} ${{ vars.TO_TAG }}

0 comments on commit 2ad3a54

Please sign in to comment.