Skip to content

Commit

Permalink
Fix sonar scan still pointing at removed 'deploy' branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CorruptComputer committed Jul 3, 2022
1 parent e43beff commit 4eb26d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build-deploy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
name: Build
name: Build and scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -17,18 +17,9 @@ jobs:
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
scan:
needs: build
name: Scan
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
ref: deploy
fetch-depth: 0
- name: SonarCloud Scan
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ sonar.projectVersion=1.0
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

sonar.cpd.exclusions=**/*.html
sonar.cpd.exclusions=**/*.html
sonar.sources=./_site

0 comments on commit 4eb26d8

Please sign in to comment.