Bump cpp-linter/cpp-linter-action from 91cfe27ea9f72194d7a74c64bcd71f6613446cb1 to 948cea872508ea44123a1e3d8638a5b828a409af #359
Workflow file for this run
This file contains 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@a5ac7e51b41094c92402da3b24376905380afc29 | |
- 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@65462800fd760344b1a7b4382951275a0abb4808 | |
with: | |
name: scan-fossology-report | |
path: ./results | |
# Artifact download | |
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e | |
with: | |
name: scan-fossology-report |