-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202305] Checkout correct branch from sonic-mgmt-common and sonic-sws…
…s-common during pipeline build (#128) #### Why I did it Pipeline is always fetching latest of sonic-mgmt-common and sonic-swss-common repos for its builds. They must be use source code from 202305 branch #### How I did it Checkout latest from `$(System.PullRequest.TargetBranch)` during PR builds and from `$(Build.SourceBranchName)` during manual builds. Known issue: other pipeline artefacts are still being downloaded from master branch. Not a blocker as of now. #### How to verify it Pipeline build
- Loading branch information
1 parent
87d8eb3
commit 88ee65d
Showing
2 changed files
with
31 additions
and
10 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,22 @@ | ||
name: Semgrep | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
- '201[7-9][0-1][0-9]' | ||
- '202[0-9][0-1][0-9]' | ||
|
||
jobs: | ||
semgrep: | ||
if: github.repository_owner == 'sonic-net' | ||
name: Semgrep | ||
runs-on: ubuntu-latest | ||
container: | ||
image: returntocorp/semgrep | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: semgrep ci | ||
env: | ||
SEMGREP_RULES: p/default |
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