chore(deps): Bump cpp-linter/cpp-linter-action from cfd08bb3bd5d5611bbbf63cfbfec2643b2da9fea to b6edc0625e3941baa1797f4b4326adeab6890c97 #501
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Fossology check | |
| on: [pull_request, push] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-license: | |
| name: Check license, copyright, keyword | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - 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_REPO_URL=${{ github.repositoryUrl }} \ | |
| -e GITHUB_REPO_OWNER=${{ github.repository_owner }} \ | |
| -e GITHUB_API=${{ github.api_url }} \ | |
| -e GITHUB_ACTIONS=true \ | |
| fossology/fossology:scanner "/bin/fossologyscanner" --report TEXT repo nomos ojo copyright keyword | |
| # Upload artifact | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: scan-fossology-report | |
| path: ./results | |
| # Artifact download | |
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 | |
| with: | |
| name: scan-fossology-report |