Skip to content

[linty] relocate sonar project script #51

[linty] relocate sonar project script

[linty] relocate sonar project script #51

Workflow file for this run

name: Linty
on:
pull_request:
push:
jobs:
linty:
name: Linty
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
run: cp $GITHUB_WORKSPACE/.github/sonar-project.properties $GITHUB_WORKSPACE/sonar-project.properties
- name: Cache
uses: actions/[email protected]
with:
path: ~/.sonar/cache
key: sonar
restore-keys: sonar
- name: Run Linty
run: |
docker run \
-e SONAR_HOST_URL=https://oss.linty-services.com \
-e SONAR_TOKEN="${{ secrets.LINTY_TOKEN }}" \
-e GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-e GITHUB_REPOSITORY_OWNER="$GITHUB_REPOSITORY_OWNER" \
-e GITHUB_REPOSITORY="$GITHUB_REPOSITORY" \
-e TABBY_CAD_LICENSE="$TABBY_CAD_LICENSE" \
-v "$PWD:/usr/src" \
lintyservices/linty-scanner:latest
env:
TABBY_CAD_LICENSE: ${{ secrets.TABBY_CAD_LICENSE }}
- name: Debug
if: always()
uses: actions/upload-artifact@v3
with:
name: debug
path: |
./bugfinder_workdir/
./.linty/
include-hidden-files: true