From 9e50d36c25dc983bcf660acd3ce2f25a5e196044 Mon Sep 17 00:00:00 2001 From: Taylor Halfyard Date: Thu, 8 Feb 2024 15:36:42 +0000 Subject: [PATCH] testing --- .github/workflows/pr-plan.yml | 51 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pr-plan.yml b/.github/workflows/pr-plan.yml index 5383173d..699659e2 100644 --- a/.github/workflows/pr-plan.yml +++ b/.github/workflows/pr-plan.yml @@ -7,34 +7,31 @@ on: branches: ['develop','feature/CB2-10780'] jobs: - scanner: - permissions: - id-token: write - contents: write - pull-requests: write - runs-on: X64 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - uses: aws-actions/configure-aws-credentials@v4 - with: + scanner: + permissions: + id-token: write + runs-on: X64 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + - uses: aws-actions/configure-aws-credentials@v4 + with: role-to-assume: ${{ secrets.CVS_MGMT_AWS_ROLE }} aws-region: ${{ secrets.DVSA_AWS_REGION }} - role-session-name: 'cvs-svcdoc-gen' - - uses: aws-actions/aws-secretsmanager-get-secrets@v1 - with: + role-session-name: 'cvs-app-vtm' + - uses: aws-actions/aws-secretsmanager-get-secrets@v1 + with: secret-ids: sonarqube-gha parse-json-secrets: true - - name: Install dependencies - run: npm ci - - name: Run SonarQube scanner - run: | - npm run test:unit -- --coverage && \ - npm run sonar-scanner -- \ - -Dsonar.host.url=${{ env.SONARQUBE_GHA_URL }} \ - -Dsonar.token=${{ env.SONARQUBE_GHA_TOKEN }} \ - -Dsonar.login=${{ env.SONARQUBE_GHA_TOKEN }} \ - -Dsonar.projectName=${{ github.repository }} \ - -Dsonar.projectVersion=1.0.${{ github.run_id }} \ No newline at end of file + - name: Install dependencies + run: npm ci + - name: Run SonarQube scanner + run: | + npm run test:unit:coverage && \ + npm run sonar-scanner -- \ + -Dsonar.host.url=${{ env.SONARQUBE_GHA_URL }} \ + -Dsonar.token=${{ env.SONARQUBE_GHA_TOKEN }} \ + -Dsonar.login=${{ env.SONARQUBE_GHA_TOKEN }} \ + -Dsonar.projectName=${{ github.repository }} \ \ No newline at end of file