this is my pipeline i created for testing
name: Debug Sonar
on:
push:
branches:
- dev2
jobs:
sonar:
runs-on: ubuntu-latest
environment: Development
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: SonarQube Quality Gate check
uses: sonarsource/sonarqube-quality-gate-action@master
with:
pollingTimeoutSec: 600
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Run $GITHUB_ACTION_PATH/script/check-quality-gate.sh “.scannerwork/report-task.txt“ “600“
$GITHUB_ACTION_PATH/script/check-quality-gate.sh ".scannerwork/report-task.txt" "600"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
SONAR_TOKEN: \*\*\*
SONAR_HOST_URL: \*\*\*
curl: (22) The requested URL returned error: 403
**Error:** Process completed with exit code 22.