Skip to content

Commit

Permalink
Test Action id case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
jules.vinot authored and jules.vinot committed May 22, 2024
1 parent 33e84cd commit fc6777d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,29 @@ on:
- test-action
pull_request:
types: [opened, synchronize, reopened]
#jobs:
# sonarcloud:
# name: SonarCloud
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# - name: SonarCloud Scan
# uses: sonarsource/sonarqube-scan-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_GHA }}
jobs:
sonarcloud:
name: SonarCloud
build:
name: Build
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@6c92dc36709458d7d6e1ed85a661f492d074301a
- uses: sonarsource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_GHA }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
6 changes: 4 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sonar.projectKey=testavinot_test-sc-scan-gha
sonar.organization=testavinot
#sonar.projectKey=testavinot_test-sc-scan-gha
#sonar.organization=testavinot

sonar.projectKey=test-action

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=test-sc-scan-gha
Expand Down

0 comments on commit fc6777d

Please sign in to comment.