1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/.github/workflows/sonarcloud.yaml

29 lines
694 B
YAML
Raw Normal View History

name: Sonarcloud workflow
on:
push:
branches:
- 'main'
- 'release*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
chore: add setup-build-env gh action (#5892) * chore: use gh composite actions Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * wait ready Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * restart Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * chore: add setup-build-env gh action Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix clone Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-05 15:52:52 +00:00
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
chore: add setup-build-env gh action (#5892) * chore: use gh composite actions Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * failure Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * wait ready Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * restart Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * chore: add setup-build-env gh action Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix clone Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * unshallow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2023-01-05 15:52:52 +00:00
- name: Setup build env
uses: ./.github/actions/setup-build-env
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@cb201f3b2d7a38231a8c042dfea4539c8bea180b # v1.8
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}