Remove sudo usage for jq installation in sonarqube.yml
Some checks failed
golangci-lint / lint (push) Successful in 47s
REUSE Compliance Check / test (push) Successful in 4s
SonarQube / Build (push) Failing after 1m12s

The use of sudo keyword for installing 'jq' in the SonarQube workflow file, sonarqube.yml, has been removed. This change is due to the fact that the root permission is not necessary during the installation process, adhering better to the principle of least privilege.
This commit is contained in:
Winni Neessen 2024-02-14 00:39:16 +01:00
parent eb675388f0
commit a536ac3bde
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -32,7 +32,7 @@ jobs:
- name: Install jq
run: |
sudo apt-get -y install jq; which jq
apt-get -y install jq; which jq
- uses: sonarsource/sonarqube-scan-action@master
env: