Skip to content

Commit

Permalink
Fix analysis workflow (#296)
Browse files Browse the repository at this point in the history
* Skip pull request event for fossa job

* Run scorecards workflow on pr and main branch
  • Loading branch information
waybackarchiver authored Dec 26, 2022
1 parent 01f9c38 commit f83cca0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ on:
permissions: read-all

jobs:
analysis:
scorecards:
name: Scorecards
uses: wabarc/.github/.github/workflows/reusable-scorecards.yml@main
if: |
github.event_name == 'pull_request' ||
github.ref == 'refs/heads/main'
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
Expand Down Expand Up @@ -57,7 +60,7 @@ jobs:
uses: wabarc/.github/.github/workflows/reusable-semgrep.yml@main

fossa:
if: github.repository == 'wabarc/wayback'
if: github.event_name != 'pull_request'
name: FOSSA
uses: wabarc/.github/.github/workflows/reusable-fossa.yml@main
secrets:
Expand Down

0 comments on commit f83cca0

Please sign in to comment.