From 444f6e79f914c79faaa9d18295e30db0597efc78 Mon Sep 17 00:00:00 2001 From: github-actions-filesync Date: Tue, 17 Jun 2025 01:03:46 +0000 Subject: [PATCH 1/2] AV-90570: Sync global files - updated: .github/workflows/sonarworkflow.yml .github/PULL_REQUEST_TEMPLATE.md --- .github/PULL_REQUEST_TEMPLATE.md | 20 ++++++++++++-- .github/workflows/sonarworkflow.yml | 43 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/sonarworkflow.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 676cdb40f9..ba074a87e9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,19 @@ -# PLEASE READ +## Describe Your Changes +**What was the problem you attempted to fix, and what is the solution?** -As per the [README](https://github.com/angular-ui/bootstrap/blob/master/README.md), this project is no longer being maintained. Any PRs entered will not be reviewed or merged and will remain open. +### Problem: +- -We thank you for your contributions over the years. This library would not have been successful without them. +### Solution: +- + +## Issue Ticket Number and Link (**Fill in**) +https://avanan.atlassian.net/browse/ + +## Feature Flag +Is this change behind a Feature Flag? +- [ ] No +- [ ] Yes - Feature Flag name (**Fill in**) + +## Checklist Before Requesting a Review +- [ ] I have performed a self-review of my code diff --git a/.github/workflows/sonarworkflow.yml b/.github/workflows/sonarworkflow.yml new file mode 100644 index 0000000000..e7571a1172 --- /dev/null +++ b/.github/workflows/sonarworkflow.yml @@ -0,0 +1,43 @@ +name: SonarQube +on: + push: + branches-ignore: + - 'bug*/**/*' + - 'feat*/**/*' + pull_request: + workflow_dispatch: + +jobs: + build: + name: Build and analyze + permissions: + contents: read + runs-on: + - codebuild-HEC-Sonar-${{ github.run_id }}-${{ github.run_attempt }} + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: generate sonar-project.properties + env: + REPOSITORY: ${{ github.repository }} + DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} + run: | + org_name=$(echo "$REPOSITORY" | cut -d'/' -f1 | tr '[:upper:]' '[:lower:]') + repo_name=$(echo "$REPOSITORY" | cut -d'/' -f2) + echo "sonar.projectKey=${org_name}-${repo_name}" > sonar-project.properties + echo "sonar.projectCreation.mainBranch=$DEFAULT_BRANCH" >> sonar-project.properties + echo "sonar.ci.autoconfig.disabled=true" >> sonar-project.properties + + + - uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: SonarSource/sonarqube-quality-gate-action@v1 + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 7ab3ee12d630d77f1499b04f6e86be6dd364b10d Mon Sep 17 00:00:00 2001 From: github-actions-filesync Date: Tue, 17 Jun 2025 14:31:00 +0000 Subject: [PATCH 2/2] AV-90570: Sync global files - updated: .github/workflows/sonarworkflow.yml --- .github/workflows/sonarworkflow.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sonarworkflow.yml b/.github/workflows/sonarworkflow.yml index e7571a1172..9fc80c7f2c 100644 --- a/.github/workflows/sonarworkflow.yml +++ b/.github/workflows/sonarworkflow.yml @@ -35,9 +35,9 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - # If you wish to fail your job when the Quality Gate is red, uncomment the - # following lines. This would typically be used to fail a deployment. - # - uses: SonarSource/sonarqube-quality-gate-action@v1 - # timeout-minutes: 5 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - uses: SonarSource/sonarqube-quality-gate-action@d304d050d930b02a896b0f85935344f023928496 + if: github.event_name == 'pull_request' + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}