Skip to content

Commit

Permalink
Update 3rd-party components
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <[email protected]>
  • Loading branch information
tdrozdovsky committed Feb 6, 2024
1 parent e232b3c commit 919963c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/fossology-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Fossology check
on: [pull_request]
on: [pull_request, push]

# permissions:
# contents: read
Expand All @@ -19,40 +19,40 @@ jobs:
-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
fossology/fossology:scanner "/bin/fossologyscanner" --report TEXT repo nomos ojo copyright keyword
# Upload artifact
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
with:
name: scan-fossology-report
path: ./results

# Artifact download
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
with:
name: scan-fossology-report

check-copyright:
name: Check copyright
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- 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=true \
fossology/fossology:scanner "/bin/fossologyscanner" --report TEXT repo copyright keyword
# Upload artifact
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: scan-fossology-report
path: ./results
# check-copyright:
# name: Check copyright
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# - 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=true \
# fossology/fossology:scanner "/bin/fossologyscanner" --report TEXT repo copyright keyword
# # Upload artifact
# - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
# with:
# name: scan-fossology-report-check-copyright
# path: ./results/check-copyright

# Artifact download
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
with:
name: scan-fossology-report
# # Artifact download
# - uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
# with:
# name: scan-fossology-report-check-copyright
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
with:
name: SARIF file
path: results.sarif
Expand Down

0 comments on commit 919963c

Please sign in to comment.