File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - ' tt/action-update-rule-metadata'
77
88env :
9+ RULE_API_VERSION : 2.10.0.4287
910 PR_BRANCH_NAME : update-rule-metadata
1011
1112jobs :
@@ -27,18 +28,21 @@ jobs:
2728 with :
2829 artifactoryRoleSuffix : private-reader
2930
31+ - name : Setup Rule API
32+ run : |
33+ jfrog rt download "sonarsource-private-releases/com/sonarsource/rule-api/rule-api/${{ env.RULE_API_VERSION }}/rule-api-${{ env.RULE_API_VERSION }}.jar" --flat
34+ working-directory : /tmp
35+
3036 - name : Setup Java
3137 uses : actions/setup-java@v4
3238 with :
3339 distribution : ' temurin'
3440 java-version : ' 21'
3541
3642 - name : Update Files
37- env :
38- LATEST_RELEASE_URL : https://repox.jfrog.io/repox/sonarsource-private-releases/com/sonarsource/rule-api/rule-api/[RELEASE]/rule-api-[RELEASE].jar
3943 run : |
40- curl --show-error --location -o rule-api.jar --header "X-JFrog-Art-Api: ${TOKEN}" --globoff "${LATEST_RELEASE_URL}"
4144 java -jar rule-api.jar update
45+ sed -i '' 's/rule:java:S3649/rule:javasecurity:S3649/g' 'sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S2077.html'
4246
4347 - name : Create PR
4448 run : |
You can’t perform that action at this time.
0 commit comments