Skip to content

Bump actions/setup-python from 5.1.1 to 5.2.0 in the github-actions group #148

Bump actions/setup-python from 5.1.1 to 5.2.0 in the github-actions group

Bump actions/setup-python from 5.1.1 to 5.2.0 in the github-actions group #148

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
permissions: read-all
jobs:
build:
name: Analyze
if: github.repository == 'manugarg/pacparser' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@816b1822d71776ee0d32bc012e95024ec52ac1fc # v3.1.0
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sudo apt install -y bear
make -C src clean
bear -- make -C src
sonar-scanner