-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (30 loc) · 1.01 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 'SonarQube Scan Action'
author: 'Jim Seiwert'
description: 'Scans your code using the sonarqube batch file'
branding:
icon: 'activity'
color: 'blue'
inputs:
host-url: # id of input
description: 'URL to SonarQube'
required: true
token: # id of input
description: 'SonarQube token'
required: true
project-key: # id of input
description: 'The name of the SonarQube project'
required: true
project-name: # id of input
description: 'The name of the SonarQube project'
required: true
runs:
using: "composite"
steps:
- run:
echo host-url ${{ inputs.host-url }}
echo project-key ${{ inputs.project-key }}.
echo project-name ${{ inputs.project-name }}.
shell: bash
- name: scan code
run: .\os\windows\bin\sonar-scanner.bat --define sonar.host.url=${{ inputs.host-url }} --define sonar.login=${{ inputs.token }} --define sonar.projectKey=${{ inputs.project-key }} --define sonar.projectName="${{ inputs.project-name }}
shell: cmd