Skip to content

Commit

Permalink
Sonarcloud Github Action (#452)
Browse files Browse the repository at this point in the history
* Sonarcloud Github Action
  • Loading branch information
Spomky authored Jul 27, 2023
1 parent e5adcb1 commit 080b81d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
/phpunit.xml.dist export-ignore
/rector.php export-ignore
/rollup.config.js export-ignore
/sonar-project.properties export-ignore
/tsconfig.json export-ignore
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- "*.*.x"
pull_request:
types: [opened, synchronize, reopened]
name: SonarCloud Main Workflow
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
branches: [ "*.*.x" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "4.6.x" ]
branches: [ "4.6.x", "4.7.x" ]
schedule:
- cron: '37 10 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: "Integrate"
on:
push:
branches:
- "*.x"
- "*.*.x"
pull_request: null

jobs:
Expand Down
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sonar.organization=web-auth
sonar.projectKey=web-auth_webauthn-framework
sonar.sources=.

0 comments on commit 080b81d

Please sign in to comment.