From eeadd100ede674b3003f6054cf2c01eb17f9ef24 Mon Sep 17 00:00:00 2001 From: Damian Borowiecki Date: Tue, 10 Oct 2023 12:15:15 +0200 Subject: [PATCH 1/4] Trigger sonar autoamtic analysis --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4957c7..28cd8aa 100644 --- a/package.json +++ b/package.json @@ -61,4 +61,4 @@ "dependencies": { "@material-ui/lab": "^4.0.0-alpha.60" } -} +} \ No newline at end of file From e26ee896ff96b0c899d4492b2aa1863a30c274fc Mon Sep 17 00:00:00 2001 From: Damian Borowiecki Date: Tue, 10 Oct 2023 12:37:02 +0200 Subject: [PATCH 2/4] Fixed SonarCloud CI pipeline (#85) * pipeline test * Fixed CI Pipeline * Include properties --------- Co-authored-by: kpavlenko --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .github/workflows/npmpublish.yml | 5 ----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..666c9bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: My Test Single Project +on: + push: + branches: + - main + - 'release/**' + - develop + - 'feature/**' + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index a51e5e6..9372191 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -21,11 +21,6 @@ jobs: run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json - run: yarn install - run: yarn build - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} publish-npm: needs: build From 21bb446b6717a0dd319d2ad21b9400c21687cdb4 Mon Sep 17 00:00:00 2001 From: Damian Borowiecki Date: Wed, 18 Oct 2023 15:19:43 +0200 Subject: [PATCH 3/4] Update ci.yml (#86) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 666c9bb..dcea3ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: My Test Single Project +name: Module SonarCloud CI Pipeline on: push: branches: @@ -20,4 +20,4 @@ jobs: uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From a40b038d6e9200afdf827f4a121b392f7cb0be60 Mon Sep 17 00:00:00 2001 From: sniedzielski <52816247+sniedzielski@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:44:30 +0200 Subject: [PATCH 4/4] CQI-96: fixed regex processing to satisfy security requirements (#87) --- src/components/UserSearcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserSearcher.js b/src/components/UserSearcher.js index 89ca6b2..81a2e77 100644 --- a/src/components/UserSearcher.js +++ b/src/components/UserSearcher.js @@ -183,7 +183,7 @@ class UserSearcher extends Component { errorItems={errorUsers} contributionKey={USER_SEARCHER_CONTRIBUTION_KEY} tableTitle={formatMessageWithValues(intl, "admin.user", "userSummaries", { - count: usersPageInfo.totalCount?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","), + count: usersPageInfo.totalCount?.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"), })} fetch={this.fetch} rowIdentifier={(r) => r.uuid}