-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeQL]: Use dependencies with relevant versions in azp template.
Signed-off-by: Nazarii Hnydyn <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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 |
---|---|---|
|
@@ -40,7 +40,7 @@ jobs: | |
config-file: ./.github/codeql/codeql-config.yml | ||
languages: ${{ matrix.language }} | ||
|
||
- name: prepare | ||
- name: Install prerequisites | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libxml-simple-perl \ | ||
|
@@ -72,10 +72,10 @@ jobs: | |
python | ||
- if: matrix.language == 'cpp' | ||
name: build-swss-common | ||
name: Build sonic-swss-common | ||
run: | | ||
cd .. | ||
git clone https://github.com/sonic-net/sonic-swss-common | ||
git clone -b ${{ github.ref_name }} https://github.com/sonic-net/sonic-swss-common | ||
pushd sonic-swss-common | ||
./autogen.sh | ||
fakeroot dpkg-buildpackage -us -uc -b | ||
|
@@ -84,12 +84,12 @@ jobs: | |
dpkg-deb -x libswsscommon-dev_1.0.0_amd64.deb $(dirname $GITHUB_WORKSPACE) | ||
- if: matrix.language == 'cpp' | ||
name: build | ||
name: Build repository | ||
run: | | ||
./autogen.sh | ||
DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$(dirname $GITHUB_WORKSPACE)/usr/include" SWSS_COMMON_LIB="$(dirname $GITHUB_WORKSPACE)/usr/lib/x86_64-linux-gnu" fakeroot debian/rules CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" binary-syncd-vs | ||
- name: Perform CodeQL Analysis | ||
- name: Perform CodeQL analysis | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
category: "/language:${{matrix.language}}" |