Skip to content

Merge pull request #774 from myrotvorets/fix/example #1523

Merge pull request #774 from myrotvorets/fix/example

Merge pull request #774 from myrotvorets/fix/example #1523

Workflow file for this run

name: SonarCloud Analysis
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: SonarCloud Scan
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.sender.login != 'dependabot[bot]' ||
github.event_name == 'push' && !contains(github.event.head_commit.message, '[ci skip]')
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit
- name: Run SonarScanner Analysis
uses: myrotvorets/composite-actions/node-sonarscan@90de8dd0f5629450c423d65eedaf1b59ef9854d8
with:
sonar-token: ${{ secrets.SONAR_TOKEN }}
test-script: test:coverage