mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-12 17:31:15 +00:00
Some checks failed
QA Deprecated C and C++ action / Action outputs (push) Has been cancelled
Unit tests / test (push) Has been cancelled
QA Install Build Wrapper action / Action outputs (push) Has been cancelled
QA Main action / No inputs
(push) Has been cancelled
QA Main action / 'args' input
(push) Has been cancelled
QA Main action / 'args' input with command injection will fail
(push) Has been cancelled
QA Main action / 'args' input with backticks injection does not execute command
(push) Has been cancelled
QA Main action / 'args' input with dollar command injection does not execute command
(push) Has been cancelled
QA Main action / 'args' input with other command injection variants does not execute command
(push) Has been cancelled
QA Main action / 'projectBaseDir' input
(push) Has been cancelled
QA Main action / 'scannerVersion' input
(push) Has been cancelled
QA Main action / 'scannerBinariesUrl' input with invalid URL
(push) Has been cancelled
QA Main action / 'scannerBinariesUrl' is escaped with wget so special chars are not injected in the download command
(push) Has been cancelled
QA Main action / 'scannerBinariesUrl' is escaped with curl so special chars are not injected in the download command
(push) Has been cancelled
QA Main action / Don't fail on Gradle project
(push) Has been cancelled
QA Main action / Don't fail on Kotlin Gradle project
(push) Has been cancelled
QA Main action / Don't fail on Maven project
(push) Has been cancelled
QA Main action / runAnalysisTest (push) Has been cancelled
QA Main action / 'RUNNER_DEBUG' is used
(push) Has been cancelled
QA Main action / runAnalysisWithCacheTest (push) Has been cancelled
QA Main action / 'SONARCLOUD_URL' is used
(push) Has been cancelled
QA Main action / curl performs redirect when scannerBinariesUrl returns 3xx
(push) Has been cancelled
QA Main action / 'SONAR_ROOT_CERT' is converted to truststore
(push) Has been cancelled
QA Main action / Analysis takes into account 'SONAR_ROOT_CERT'
(push) Has been cancelled
QA Main action / truststore.p12 is updated when present
(push) Has been cancelled
QA Main action / 'scannerVersion' input validation
(push) Has been cancelled
QA Scripts / create_install_path.sh (push) Has been cancelled
QA Scripts / configure_paths.sh (push) Has been cancelled
QA Scripts / download.sh (push) Has been cancelled
QA Scripts / fetch_latest_version.sh (push) Has been cancelled
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
name: QA Install Build Wrapper action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
output-test:
|
|
name: Action outputs
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [github-ubuntu-latest-s, github-windows-latest-s, macos-latest, macos-14]
|
|
cache: [true, false]
|
|
include:
|
|
- arch: X64
|
|
- os: macos-latest
|
|
arch: ARM64
|
|
- os: macos-14
|
|
arch: ARM64
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
# Specifying a specific architecture of the runner is not possible for Github hosted runners
|
|
# We can only check if the runner architecture matches the expected one
|
|
- name: check_runner_arch
|
|
shell: bash
|
|
run: |
|
|
echo "Runner architecture: ${{ runner.arch }}"
|
|
if [[ "${{ runner.arch }}" != "${{ matrix.arch }}" ]]; then
|
|
echo "##[error]Runner architecture does not match the expected one"
|
|
exit 1
|
|
fi
|
|
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
|
|
- name: Run SonarQube C/C++ action
|
|
id: run-action
|
|
uses: ./install-build-wrapper
|
|
env:
|
|
SONAR_HOST_URL: 'https://next.sonarqube.com/sonarqube/'
|
|
|
|
# build-wrapper does not have --help or equivalent option.
|
|
# Pass to few arguments and ignore error code
|
|
- name: build-wrapper is installed and in PATH on Windows
|
|
if: runner.os == 'Windows'
|
|
shell: bash
|
|
run: |
|
|
(build-wrapper-win-x86-64.exe || true) | grep "build-wrapper, version "
|
|
|
|
- name: build-wrapper is installed and in PATH on Linux
|
|
if: runner.os == 'Linux'
|
|
shell: bash
|
|
run: |
|
|
(build-wrapper-linux-x86-64 || true) | grep "build-wrapper, version "
|
|
|
|
- name: build-wrapper is installed and in PATH on macOS
|
|
if: runner.os == 'macOs'
|
|
shell: bash
|
|
run: |
|
|
(build-wrapper-macosx-x86 || true) | grep "build-wrapper, version "
|
|
|
|
- name: build-wrapper-binary output is correct
|
|
shell: bash
|
|
env:
|
|
BINARY: ${{ steps.run-action.outputs.build-wrapper-binary }}
|
|
run: |
|
|
("$BINARY" || true) | grep "build-wrapper, version "
|