Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up FOSSA dependency scan action #1482

Merged
merged 6 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 18 additions & 27 deletions .github/workflows/dependency-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,34 @@ jobs:
dependency-scan:
name: dependency-scan
runs-on: ubuntu-latest
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

steps:
- uses: actions/checkout@v4

- name: Debugging information
run: |
ghc --version || echo "no ghc"
cabal --version || echo "no cabal"
ghcup --version || echo "no ghcup"

- name: Update cabal cache for spectrometer run
run: |
cabal update

- name: Install spectrometer from github
run: |
./install-latest.sh -d

- name: Use Spectrometer's GHC and Cabal
- name: Install and set GHC and Cabal versions
# The first line works around a ghcup issue:
# https://github.com/actions/runner-images/issues/7061#issuecomment-1422639889
run: |
sudo chown -R $USER /usr/local/.ghcup
ghcup install ghc 9.0.2
ghcup set ghc 9.0.2
ghcup install cabal 3.6.2.0
ghcup set cabal 3.6.2.0
ghcup install ghc 9.8.2
ghcup set ghc 9.8.2
ghcup install cabal 3.10.3.0
ghcup set cabal 3.10.3.0
cabal update

- name: Run dependency scan on Spectrometer
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
- name: Log debug information
run: |
fossa analyze --only-target cabal --only-target cargo
ghc --version || echo "no ghc"
cabal --version || echo "no cabal"
ghcup --version || echo "no ghcup"

- name: Install latest release from github
run: ./install-latest.sh -d

- name: Run dependency scan
run: fossa analyze --only-target cabal --only-target cargo

- name: Check for scan results
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: |
fossa test
run: fossa test
Loading