Skip to content

asd

asd #28

Workflow file for this run

on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
sonarcloud:
runs-on: self-hosted
steps:
- name: Clean the workspace
uses: docker://alpine
with:
args: /bin/sh -c "rm -rf \"${GITHUB_WORKSPACE}\"/..?* \"${GITHUB_WORKSPACE}\".[!.]* \"${GITHUB_WORKSPACE}\"*"
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
args: >
-Dsonar.organization=dbmeneses
- name: SonarCloud Scan
uses: sonarsource/[email protected]
with:
args: >
-Dsonar.organization=dbmeneses
-Dsonar.projectKey=test
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}