[Snyk] Upgrade react-toastify from 10.0.4 to 10.0.5 #17
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: CI/CD Pipeline on Github Actions | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "20.x" | |
- name: SAST Scan on Source Code using SonarCloud | |
uses: sonarsource/sonarcloud-github-action@master | |
with: | |
args: > | |
-Dsonar.organization=github-sast-tests | |
-Dsonar.projectKey=github-sast-tests_igma-project-rechability | |
-Dsonar.sources=. | |
-Dsonar.host.url=https://sonarcloud.io | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm test | |
security: | |
runs-on: ubuntu-latest | |
needs: build | |
name: Run the SCA scan on the source code | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run the SCA scan on the source code | |
uses: snyk/actions/node@master | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |