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..9fc80c7f2c --- /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 }} + + - 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 }}