Skip to content

Commit 9d07081

Browse files
Add shadow scan github workflow
1 parent 1514ca8 commit 9d07081

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/shadow_scans.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Shadow scans
2+
on:
3+
schedule:
4+
# Run the workflow every day at 04:00 UTC
5+
- cron: '0 1 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
scan:
10+
runs-on: github-ubuntu-latest-s
11+
name: Scan on shadow platforms
12+
permissions:
13+
id-token: write
14+
contents: write
15+
steps:
16+
- name: Vault
17+
id: secrets
18+
uses: SonarSource/vault-action-wrapper@v3
19+
with:
20+
secrets: |
21+
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN;
22+
- uses: actions/checkout@v4
23+
- uses: jdx/mise-action@v2
24+
- uses: SonarSource/ci-github-actions/build-gradle@master # dogfood
25+
env:
26+
ARTIFACTORY_PRIVATE_USERNAME: vault-{REPO_OWNER_NAME_DASH}-private-reader
27+
ARTIFACTORY_PRIVATE_PASSWORD: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
28+
with:
29+
run-shadow-scans: true
30+
artifactory-reader-role: private-reader
31+
artifactory-deployer-role: qa-deployer
32+
gradle-args: --no-daemon --info --stacktrace --console plain build sonar
33+
- name: Run IRIS Analysis
34+
uses: SonarSource/unified-dogfooding-actions/run-iris@v1
35+
with:
36+
primary_project_key: "org.sonarsource.kotlin:kotlin"
37+
primary_platform: "Next"
38+
shadow1_project_key: "SonarSource_sonar-kotlin"
39+
shadow1_platform: "SQC-EU"
40+
shadow2_project_key: "SonarSource_sonar-kotlin"
41+
shadow2_platform: "SQC-US"

.mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
java = "17.0"
3+
gradle = "8.10.1"

0 commit comments

Comments
 (0)