Skip to content

Commit 874afd9

Browse files
SONAR-2725 Backport GitHub Actions migration to 2025.4
1 parent b366d18 commit 874afd9

32 files changed

+530
-1002
lines changed

.cirrus/tasks.yml

Lines changed: 0 additions & 212 deletions
This file was deleted.

.github/github_env.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
versions:
55
current: "2025.4.4"
6-
previous_lta: "9.9.9"
7-
community_build: "25.9.0.112764"
86

97
images:
108
staging: "sonarsource/sonarqube"
@@ -17,4 +15,3 @@ registries:
1715
products:
1816
gcp_public_name: "official-sonarqube-data-center-edition"
1917
gcp_staging_name: "sonarqube-dce-staging"
20-

.github/trivy.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Trivy Configuration File
2+
# Reference: https://aquasecurity.github.io/trivy/latest/docs/references/configuration/config-file/
3+
4+
# Scan settings
5+
scan:
6+
# Skip scanning of specific directories
7+
skip-dirs:
8+
- "node_modules"
9+
- "vendor"
10+
- ".git"
11+
12+
# Vulnerability settings
13+
vulnerability:
14+
# Types of vulnerabilities to detect
15+
type:
16+
- os # Only scan OS packages (excludes application libraries like JAR, npm, etc.)
17+
18+
# Report settings
19+
report:
20+
# Format of the output
21+
format: table
22+
23+
# Severity levels to report
24+
severity:
25+
- CRITICAL
26+
- HIGH
27+
- MEDIUM
28+
- LOW
29+
30+
# Database settings
31+
db:
32+
# Skip database update (useful for offline environments)
33+
skip-update: false
34+
35+
# Timeout settings
36+
timeout: 10m

.github/workflows/PullRequestClosed.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
types: [closed]
66

77
jobs:
8-
PullRequestMerged_job:
9-
name: Pull Request Merged
10-
runs-on: ubuntu-latest-large
8+
PullRequestClosed_job:
9+
name: Pull Request Closed
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
pull-requests: read
@@ -16,12 +16,12 @@ jobs:
1616
github.event.pull_request.head.repo.full_name == github.repository
1717
steps:
1818
- id: secrets
19-
uses: SonarSource/vault-action-wrapper@v3
19+
uses: SonarSource/vault-action-wrapper@545e7cfbb5528e7009a1edcc83e073898d292627 # v3.2.0
2020
with:
2121
secrets: |
2222
development/kv/data/jira user | JIRA_USER;
2323
development/kv/data/jira token | JIRA_TOKEN;
24-
- uses: sonarsource/gh-action-lt-backlog/PullRequestClosed@v2
24+
- uses: sonarsource/gh-action-lt-backlog/PullRequestClosed@02f0a8d3280a05b9d2c5ee3b8407cec1b0158ce6 # v2
2525
with:
2626
github-token: ${{secrets.GITHUB_TOKEN}}
2727
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}

.github/workflows/PullRequestCreated.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/RequestReview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ on:
77
jobs:
88
RequestReview_job:
99
name: Request review
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
# For external PR, ticket should be moved manually
1414
if: |
1515
github.event.pull_request.head.repo.full_name == github.repository
1616
steps:
1717
- id: secrets
18-
uses: SonarSource/vault-action-wrapper@v3
18+
uses: SonarSource/vault-action-wrapper@545e7cfbb5528e7009a1edcc83e073898d292627 # v3.2.0
1919
with:
2020
secrets: |
2121
development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
2222
development/kv/data/jira user | JIRA_USER;
2323
development/kv/data/jira token | JIRA_TOKEN;
24-
- uses: sonarsource/gh-action-lt-backlog/RequestReview@v2
24+
- uses: sonarsource/gh-action-lt-backlog/RequestReview@02f0a8d3280a05b9d2c5ee3b8407cec1b0158ce6 # v2
2525
with:
2626
github-token: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
2727
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}

.github/workflows/SubmitReview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
SubmitReview_job:
99
name: Submit Review
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
pull-requests: read
@@ -18,12 +18,12 @@ jobs:
1818
|| github.event.review.state == 'approved')
1919
steps:
2020
- id: secrets
21-
uses: SonarSource/vault-action-wrapper@v3
21+
uses: SonarSource/vault-action-wrapper@545e7cfbb5528e7009a1edcc83e073898d292627 # v3.2.0
2222
with:
2323
secrets: |
2424
development/kv/data/jira user | JIRA_USER;
2525
development/kv/data/jira token | JIRA_TOKEN;
26-
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
26+
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@02f0a8d3280a05b9d2c5ee3b8407cec1b0158ce6 # v2
2727
with:
2828
github-token: ${{secrets.GITHUB_TOKEN}}
2929
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}

0 commit comments

Comments
 (0)