Skip to content

Demo safran

Demo safran #111

Workflow file for this run

name: Linty
on:
push:
pull_request:
jobs:
build:
name: Linty
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache
uses: actions/cache@v3.3.0
with:
path: ~/.sonar/cache
key: sonar
restore-keys: sonar
- name: Set Linty Analysis Parameters
uses: haya14busa/action-cond@v1.1.1
id: linty_analysis_parameters
with:
cond: ${{ github.event.pull_request.number != '' }}
if_true: -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
if_false: -Dsonar.branch.name=${GITHUB_REF#refs/*/}
- name: Run Linty
run: |
docker run \
--rm \
-e SONAR_HOST_URL=https://sonar.linty-services.com \
-e SONAR_TOKEN="${{ secrets.SONARQUBE_SCANNER_FOR_PRIVATE_REPOSITORIES_TOKEN }}" \
-e SONAR_SCANNER_OPTS="-Dsonar.qualitygate.wait=true ${{ steps.linty_analysis_parameters.outputs.value }}" \
-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:beta
env:
TABBY_CAD_LICENSE: ${{ secrets.TABBY_CAD_LICENSE }}
- name: Debug
if: always()
uses: actions/upload-artifact@v3
with:
name: debug
path: |
./bugfinder_workdir/