SCANDOCKER-3 Update release pipeline to support new versioning #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
# Trigger analysis when pushing in master or pull requests, and when creating | |
# a pull request. | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
name: Main Workflow | |
jobs: | |
next: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
pull-requests: read | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Disabling shallow clone is recommended for improving relevancy of reporting | |
fetch-depth: 0 | |
- id: secrets | |
uses: SonarSource/vault-action-wrapper@2.4.3-1 | |
with: | |
secrets: | | |
development/kv/data/next token | sq_next_token; | |
- name: SonarQube Next Scan | |
uses: sonarsource/sonarqube-scan-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).sq_next_token }} | |
SONAR_HOST_URL: https://next.sonarqube.com |