From dbffdf5c304ca678a4b7c50a42dd13ff4a5b0344 Mon Sep 17 00:00:00 2001 From: Jessica Black Date: Tue, 26 Nov 2024 15:24:45 -0800 Subject: [PATCH] try changing order of actions --- .github/workflows/dependency-scan.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dependency-scan.yml b/.github/workflows/dependency-scan.yml index 8c0336440..790fc20c7 100644 --- a/.github/workflows/dependency-scan.yml +++ b/.github/workflows/dependency-scan.yml @@ -11,18 +11,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Log debug information - run: | - ghc --version || echo "no ghc" - cabal --version || echo "no cabal" - ghcup --version || echo "no ghcup" - - - name: Update cabal cache - run: cabal update - - - name: Install latest release from github - run: ./install-latest.sh -d - - 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 @@ -34,6 +22,15 @@ jobs: ghcup set cabal 3.6.2.0 cabal update + - name: Log debug information + run: | + 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