Skip to content

Commit 1916ed9

Browse files
committed
chore: Ignore sonar findings on GH actions
1 parent a7c8e40 commit 1916ed9

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,18 @@ jobs:
3737
- "21"
3838

3939
steps:
40+
# sonarcloud-ignore githubactions:S7637
4041
- uses: actions/checkout@v5
42+
# sonarcloud-ignore githubactions:S7637
4143
- uses: actions/setup-node@v5
4244
- name: Set up JDK ${{ matrix.java }}
45+
# sonarcloud-ignore githubactions:S7637
4346
uses: actions/setup-java@v5
4447
with:
4548
distribution: "temurin"
4649
java-version: ${{ matrix.java }}
4750
- name: Cache .m2
51+
# sonarcloud-ignore githubactions:S7637
4852
uses: actions/cache@v4
4953
with:
5054
path: ~/.m2/repository
@@ -57,8 +61,9 @@ jobs:
5761
cd sdk && npm run clean && npm run build
5862
5963
- name: Publish Test Report
64+
# sonarcloud-ignore githubactions:S7637
6065
uses: mikepenz/action-junit-report@v5
61-
if: success() || failure() # always run even if the previous step fails
66+
if: success() || failure()
6267
with:
6368
summary: true
6469
detailed_summary: true
@@ -67,6 +72,7 @@ jobs:
6772
report_paths: '**/target/*-reports/TEST-*.xml'
6873

6974
- name: Upload coverage to Codecov
75+
# sonarcloud-ignore githubactions:S7637
7076
uses: codecov/[email protected]
7177
with:
7278
file: "${{ github.workspace }}/spi/target/jacoco.xml"
@@ -89,10 +95,13 @@ jobs:
8995
- "26.4.0"
9096
- "nightly"
9197
steps:
98+
# sonarcloud-ignore githubactions:S7637
9299
- uses: actions/checkout@v5
93100
- name: "Use Node.js"
101+
# sonarcloud-ignore githubactions:S7637
94102
uses: actions/setup-node@v5
95103
- name: Install Java
104+
# sonarcloud-ignore githubactions:S7637
96105
uses: actions/setup-java@v5
97106
with:
98107
distribution: "temurin" # See 'Supported distributions' for available options
@@ -104,6 +113,7 @@ jobs:
104113
./mvnw javadoc:javadoc
105114
106115
- name: Run End2End Tests
116+
# sonarcloud-ignore githubactions:S7637
107117
uses: nick-fields/retry@v3
108118
with:
109119
max_attempts: 3
@@ -116,6 +126,7 @@ jobs:
116126
117127
- name: Build Container Image for End2End Testing
118128
id: build-image
129+
# sonarcloud-ignore githubactions:S7637
119130
uses: redhat-actions/buildah-build@v2
120131
with:
121132
image: continuoussecuritytooling/audited-keycloak
@@ -125,6 +136,7 @@ jobs:
125136
126137
- name: Push To Docker Hub (Preview)
127138
id: push-to-dockerhub-preview
139+
# sonarcloud-ignore githubactions:S7637
128140
uses: redhat-actions/push-to-registry@v2
129141
with:
130142
image: ${{ steps.build-image.outputs.image }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,19 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44+
# sonarcloud-ignore githubactions:S7637
4445
uses: actions/checkout@v5
4546

4647
- name: Setup Java JDK
48+
# sonarcloud-ignore githubactions:S7637
4749
uses: actions/setup-java@v5
4850
with:
4951
distribution: 'temurin'
5052
java-version: 17
5153

5254
# Initializes the CodeQL tools for scanning.
5355
- name: Initialize CodeQL
56+
# sonarcloud-ignore githubactions:S7637
5457
uses: github/codeql-action/init@v4
5558
with:
5659
languages: ${{ matrix.language }}

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ jobs:
2020
id-token: write
2121
steps:
2222

23+
# sonarcloud-ignore githubactions:S7637
2324
- uses: actions/create-github-app-token@v2
2425
id: app-token
2526
with:
2627
app-id: ${{ vars.CI_APP_ID }}
2728
private-key: ${{ secrets.CI_PRIVATE_KEY }}
2829

2930
- name: Checkout
31+
# sonarcloud-ignore githubactions:S7637
3032
uses: actions/checkout@v5
3133
with:
3234
fetch-depth: 0
@@ -45,12 +47,14 @@ jobs:
4547
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
4648
4749
- name: Setup NodeJS
50+
# sonarcloud-ignore githubactions:S7637
4851
uses: actions/setup-node@v5
4952
with:
5053
node-version: "22"
5154
registry-url: "https://registry.npmjs.org"
5255

5356
- name: Setup Java
57+
# sonarcloud-ignore githubactions:S7637
5458
uses: actions/setup-java@v5
5559
with:
5660
distribution: "temurin" # As good as any other, see: https://github.com/actions/setup-java#supported-distributions
@@ -60,6 +64,7 @@ jobs:
6064
cache: "maven"
6165

6266
- name: Setup settings.xml
67+
# sonarcloud-ignore githubactions:S7637
6368
6469
with:
6570
override: true
@@ -98,6 +103,7 @@ jobs:
98103
EOF
99104
100105
- name: Conventional Changelog Action
106+
# sonarcloud-ignore githubactions:S7637
101107
uses: TriPSs/conventional-changelog-action@v6
102108
with:
103109
input-file: CHANGELOG.md
@@ -111,6 +117,7 @@ jobs:
111117

112118
- name: Create Release on GH
113119
id: tag-and-release
120+
# sonarcloud-ignore githubactions:S7637
114121
uses: avakar/tag-and-release@v1
115122
with:
116123
draft: true
@@ -120,6 +127,7 @@ jobs:
120127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121128

122129
- name: Add SPI to github release
130+
# sonarcloud-ignore githubactions:S7637
123131
uses: actions/upload-release-asset@v1
124132
with:
125133
upload_url: ${{ steps.tag-and-release.outputs.upload_url }}

0 commit comments

Comments
 (0)