Skip to content

Commit

Permalink
ci: fix security build job (#328)
Browse files Browse the repository at this point in the history
* ci: fix security build job

* chore: run job on PRs
  • Loading branch information
leovct authored Oct 22, 2024
1 parent 38a979a commit ad85a64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/security-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Security Build
on:
push:
branches: [main]
#pull_request:
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -17,11 +17,9 @@ jobs:
fetch-depth: 0

- uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# This step will only execute if the necessary secrets are available, preventing failures
# on pull requests from forked repositories.
if: ${{ env.SONAR_TOKEN}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit ad85a64

Please sign in to comment.