File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update Rule Metadata
2+
3+ on : push
4+ branches :
5+ - tt/action-update-rule-metadata
6+
7+ env :
8+ PR_BRANCH_NAME : update-rule-metadata
9+
10+ jobs :
11+ UpdateRuleMetadata_job :
12+ name : Update Rule Metadata
13+ runs-on : ubuntu-latest
14+ permissions :
15+ pull-requests : write
16+ contents : write
17+
18+ steps :
19+
20+ - name : Checkout Sources
21+ uses : actions/checkout@v4
22+
23+ - name : Setup JFrog
24+ uses : SonarSource/jfrog-setup-wrapper@v3
25+ with :
26+ artifactoryRoleSuffix : private-reader
27+
28+ - name : Setup Java
29+ uses : actions/setup-java@v4
30+ with :
31+ distribution : ' temurin'
32+ java-version : ' 21'
33+
34+ - name : Update Files
35+ env :
36+ LATEST_RELEASE_URL : https://repox.jfrog.io/repox/sonarsource-private-releases/com/sonarsource/rule-api/rule-api/[RELEASE]/rule-api-[RELEASE].jar
37+ run : |
38+ curl --show-error --location -o rule-api.jar --header "X-JFrog-Art-Api: ${TOKEN}" --globoff "${LATEST_RELEASE_URL}"
39+ java -jar rule-api.jar update
40+ sed -i '' 's/rule:java:S3649/rule:javasecurity:S3649/g' 'sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2077.html'
41+
42+ - name : Create PR
43+ run : |
44+ echo TODO
You can’t perform that action at this time.
0 commit comments