Skip to content

Commit

Permalink
update java version for sonnarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
LopezMDidac committed Dec 5, 2023
1 parent e6bcfec commit dc0e797
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Sonar_Scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
types: [opened, synchronize, reopened, labeled]
workflow_call:
secrets:
SONAR_TOKEN:
required: true
SONAR_TOKEN:
required: true
workflow_dispatch: ~

jobs:
Expand All @@ -16,25 +16,25 @@ jobs:
steps:
- name: Check if draft
if: |
(github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name && !contains(github.event.pull_request.labels.*.name, 'SonarScan'))
(github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name && !contains(github.event.pull_request.labels.*.name, 'SonarScan'))
run: |
echo "${{ github.event.pull_request.head.repo.full_name }}"
echo "${{ github.event.pull_request.base.repo.full_name }}"
echo "${{ github.event.pull_request.labels.*.name }}"
echo "This PR is pending to be reviewed by repo owner."
exit 1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
java-version: 17
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand All @@ -56,7 +56,7 @@ jobs:
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
Expand Down

0 comments on commit dc0e797

Please sign in to comment.