feature/cb2-12323: Fix the local development with serverless #155
Workflow file for this run
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
name: PR-checks | |
on: | |
push: | |
branches: ['develop'] | |
pull_request: | |
branches: ['develop'] | |
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: | |
role-to-assume: ${{ secrets.CVS_MGMT_AWS_ROLE }} | |
aws-region: ${{ secrets.DVSA_AWS_REGION }} | |
role-session-name: 'cvs-tsk-cert-gen' | |
- 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 && \ | |
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 }} |