mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-19 01:40:15 +03:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a272c86479 | |||
| c444753899 | |||
| 59db25f34e | |||
| ca30b65f4e | |||
| c7ee0f9df9 |
@@ -10,7 +10,6 @@ jobs:
|
|||||||
runs-on: github-ubuntu-latest-s
|
runs-on: github-ubuntu-latest-s
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
pull-requests: read
|
|
||||||
# For external PR, ticket should be moved manually
|
# For external PR, ticket should be moved manually
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
@@ -21,10 +20,11 @@ jobs:
|
|||||||
uses: SonarSource/vault-action-wrapper@v3
|
uses: SonarSource/vault-action-wrapper@v3
|
||||||
with:
|
with:
|
||||||
secrets: |
|
secrets: |
|
||||||
|
development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
|
||||||
development/kv/data/jira user | JIRA_USER;
|
development/kv/data/jira user | JIRA_USER;
|
||||||
development/kv/data/jira token | JIRA_TOKEN;
|
development/kv/data/jira token | JIRA_TOKEN;
|
||||||
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
|
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
|
||||||
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
|
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
|
||||||
jira-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
|
jira-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Parse semver
|
- name: Parse semver
|
||||||
uses: madhead/semver-utils@36d1e0ed361bd7b4b77665de8093092eaeabe6ba # v4.3.0
|
uses: madhead/semver-utils@4cf918affe9106ea59f86c6250e5ec4570ac4389 # v5.0.0
|
||||||
id: version
|
id: version
|
||||||
with:
|
with:
|
||||||
version: ${{ github.ref_name }}
|
version: ${{ github.ref_name }}
|
||||||
|
|||||||
@@ -200,6 +200,23 @@ This can be useful when the runner executing the action is self-hosted and has r
|
|||||||
scannerBinariesUrl: https://my.custom.binaries.url.com/Distribution/sonar-scanner-cli/
|
scannerBinariesUrl: https://my.custom.binaries.url.com/Distribution/sonar-scanner-cli/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `skipSignatureVerification`
|
||||||
|
|
||||||
|
By default, the action verifies the OpenPGP signature of the SonarScanner CLI binary before executing it. You can disable this verification using the `skipSignatureVerification` option:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: SonarSource/sonarqube-scan-action@<action version>
|
||||||
|
with:
|
||||||
|
skipSignatureVerification: true
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Signature verification requires `gpg` and `dirmngr` to be installed on the runner. GitHub-hosted runners include both, but some self-hosted runners or containers may not.
|
||||||
|
>
|
||||||
|
> **Version history:**
|
||||||
|
> - Introduced in **v7.2** with a default value of `true` to avoid breaking existing workflows on runners without `dirmngr`.
|
||||||
|
> - Changed to `false` by default in **v8** (breaking change). If your runner does not have `gpg` or `dirmngr` installed, set this option to `true` explicitly.
|
||||||
|
|
||||||
More information about possible analysis parameters can be found:
|
More information about possible analysis parameters can be found:
|
||||||
* in the [Analysis parameters page](https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/analysis-parameters/) of the SonarQube Server documentation
|
* in the [Analysis parameters page](https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/analysis-parameters/) of the SonarQube Server documentation
|
||||||
* in the [Analysis parameters page](https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/analysis-parameters/) of the SonarQube Cloud documentation
|
* in the [Analysis parameters page](https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/analysis-parameters/) of the SonarQube Cloud documentation
|
||||||
@@ -452,6 +469,8 @@ When running the action in a self-hosted runner or container, please ensure that
|
|||||||
|
|
||||||
* **curl** or **wget**
|
* **curl** or **wget**
|
||||||
* **unzip**
|
* **unzip**
|
||||||
|
* **gpg**
|
||||||
|
* **dirmngr**
|
||||||
|
|
||||||
### Additional information
|
### Additional information
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user