Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into vertx-with-junit5
- Loading branch information
Showing
1,474 changed files
with
7,085 additions
and
2,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
load("github.com/SonarSource/cirrus-modules@v1", "cirrus_auth") | ||
|
||
def main(ctx): | ||
return cirrus_auth() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
java-frontend/src/test/files/highlighter/SonarSymTable.java eol=lf | ||
java-checks/src/test/files/checks/NonEmptyFile.java eol=cr | ||
java-frontend/src/test/java/org/sonar/java/model/TreeTokenCompletenessTest.java eol=lf | ||
java-checks/src/main/java/org/sonar/java/checks/helpers/ExpressionEvaluator.java eol=lf | ||
java-checks-test-sources/src/main/java/checks/CounterModeIVShouldNotBeReusedCheck.java eol=lf | ||
java-checks/src/main/java/org/sonar/java/checks/helpers/HardcodedStringExpressionChecker.java eol=lf | ||
its/ruling/src/test/resources/autoscan/autoscan-diff-by-rules.json eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,19 @@ | ||
--- | ||
name: sonar-release | ||
# This workflow is triggered when publishing a new github release | ||
on: | ||
# yamllint disable-line rule:truthy | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Release | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.BINARIES_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.BINARIES_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.BINARIES_AWS_REGION }} | ||
- name: Release | ||
id: release | ||
env: | ||
ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }} | ||
BINARIES_AWS_DEPLOY: ${{ secrets.BINARIES_AWS_DEPLOY }} # Required for pushing the binaries | ||
BURGRX_USER: ${{ secrets.BURGRX_USER }} | ||
BURGRX_PASSWORD: ${{ secrets.BURGRX_PASSWORD }} | ||
CIRRUS_TOKEN: ${{ secrets.CIRRUS_TOKEN }} | ||
PATH_PREFIX: ${{ secrets.BINARIES_PATH_PREFIX }} | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
RELEASE_SSH_USER: ${{ secrets.RELEASE_SSH_USER }} | ||
RELEASE_SSH_KEY: ${{ secrets.RELEASE_SSH_KEY }} | ||
SLACK_API_TOKEN: ${{secrets.SLACK_API_TOKEN }} | ||
uses: SonarSource/gh-action_release/main@v4 | ||
with: | ||
publish_to_binaries: true # Used only if the binaries is delivered to costumers | ||
slack_channel: team-lang-java-notifs | ||
- name: Release action results | ||
if: always() | ||
run: | | ||
echo "${{ steps.release.outputs.releasability }}" | ||
echo "${{ steps.release.outputs.promote }}" | ||
echo "${{ steps.release.outputs.publish_to_binaries }}" | ||
echo "${{ steps.release.outputs.release }}" | ||
maven-central-sync: # Only required for OSS projects | ||
runs-on: ubuntu-latest | ||
name: Maven Central Sync | ||
needs: | ||
- release | ||
steps: | ||
- name: Setup JFrog CLI | ||
uses: jfrog/setup-jfrog-cli@v1 | ||
- name: JFrog config | ||
run: jfrog rt config repox --url https://repox.jfrog.io/artifactory/ --apikey $ARTIFACTORY_API_KEY --basic-auth-only | ||
env: | ||
ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }} | ||
- name: Get the version | ||
id: get_version | ||
run: | | ||
IFS=. read major minor patch build <<< "${{ github.event.release.tag_name }}" | ||
echo ::set-output name=build::"${build}" | ||
- name: Create local repository directory | ||
id: local_repo | ||
run: echo ::set-output name=dir::"$(mktemp -d repo.XXXXXXXX)" | ||
- name: Download Artifacts | ||
uses: SonarSource/gh-action_release/download-build@v4 | ||
with: | ||
build-number: ${{ steps.get_version.outputs.build }} | ||
local-repo-dir: ${{ steps.local_repo.outputs.dir }} | ||
- name: Maven Central Sync | ||
id: maven-central-sync | ||
continue-on-error: true | ||
uses: SonarSource/gh-action_release/maven-central-sync@v4 | ||
with: | ||
local-repo-dir: ${{ steps.local_repo.outputs.dir }} | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
- name: Notify on failure | ||
if: ${{ failure() || steps.maven-central-sync.outcome == 'failure' }} | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
text: 'Maven sync failed' | ||
status: failure | ||
fields: repo,author,eventName | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BUILD_WEBHOOK }} | ||
permissions: | ||
id-token: write | ||
contents: write | ||
uses: SonarSource/gh-action_release/.github/workflows/main.yaml@v5 | ||
with: | ||
publishToBinaries: true | ||
mavenCentralSync: true | ||
slackChannel: team-lang-java-notifs |
Oops, something went wrong.