forked from kyverno/kyverno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Sonarcloud and Nancy github action (kyverno#3491)
* Integrate Sonarcloud and Nancy github action Integrate Sonarcloud for static code analysis and Nancy for analysing dependencies Signed-off-by: Shubham Gupta <[email protected]> * fix: pin actions to commit sha Signed-off-by: Charles-Edouard Brétéché <[email protected]> * fix auth for pr Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Shubham Gupta <[email protected]> Signed-off-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: Vyankatesh Kudtarkar <[email protected]> Co-authored-by: Prateek Pandey <[email protected]> Co-authored-by: Jim Bugwadia <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: shuting <[email protected]>
- Loading branch information
1 parent
530a584
commit f00c12e
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Nancy | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release*' | ||
|
||
jobs: | ||
nancy: | ||
runs-on: ubuntu-latest | ||
name: Nancy | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2 | ||
- name: WriteGoList | ||
run: go list -json -m all > go.list | ||
- name: Nancy SAST Scan | ||
uses: sonatype-nexus-community/nancy-github-action@aae196481b961d446f4bff9012e4e3b63d7921a4 # pin@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Sonarcloud workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release*' | ||
|
||
jobs: | ||
sonarcloud: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@156db6fef3e168e4972abb76de0b32bbce8ec77a # pin@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sonar.organization=kyverno | ||
sonar.projectKey=kyverno_kyverno | ||
|
||
# relative paths to source directories. More details and properties are described | ||
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ | ||
sonar.sources=. |