forked from sonic-net/sonic-dhcp-relay
-
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.
# This is a combination of 5 commits.
# This is the 1st commit message: fix multi-vlan relay issue # This is the commit message sonic-net#2: issue fix # This is the commit message sonic-net#3: code refine in UT # This is the commit message sonic-net#4: fix counter rollback issue # This is the commit message sonic-net#5: Use github code scanning instead of LGTM (sonic-net#26) * Use github code scanning instead of LGTM * fi libyang libyang1 * remove libyang1 * add python * add libpython
- Loading branch information
jcaiMR
committed
Dec 14, 2022
1 parent
1e846f6
commit 8ffbe8a
Showing
8 changed files
with
350 additions
and
268 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,4 @@ | ||
name: "CodeQL config" | ||
queries: | ||
- uses: security-and-quality | ||
- uses: security-extended |
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,80 @@ | ||
# For more infomation, please visit: https://github.com/github/codeql-action | ||
|
||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '202[0-9][0-9][0-9]' | ||
pull_request_target: | ||
branches: | ||
- 'master' | ||
- '202[0-9][0-9][0-9]' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'cpp' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2.1.29 | ||
with: | ||
config-file: ./.github/codeql/codeql-config.yml | ||
languages: ${{ matrix.language }} | ||
|
||
- name: prepare | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libboost-system-dev \ | ||
libboost-thread-dev \ | ||
libevent-dev \ | ||
libhiredis-dev \ | ||
libnl-3-dev \ | ||
libnl-route-3-dev \ | ||
libnl-nf-3-dev \ | ||
libnl-genl-3-dev \ | ||
libgmock-dev \ | ||
dh-exec \ | ||
swig3.0 \ | ||
uuid-dev \ | ||
libzmq3-dev \ | ||
libyang-dev \ | ||
libpython2.7-dev \ | ||
python | ||
- name: build-swss-common | ||
run: | | ||
set -x | ||
cd .. | ||
git clone https://github.com/sonic-net/sonic-swss-common | ||
pushd sonic-swss-common | ||
./autogen.sh | ||
fakeroot dpkg-buildpackage -us -uc -b | ||
popd | ||
dpkg-deb -x libswsscommon_1.0.0_amd64.deb $(dirname $GITHUB_WORKSPACE) | ||
dpkg-deb -x libswsscommon-dev_1.0.0_amd64.deb $(dirname $GITHUB_WORKSPACE) | ||
- name: build | ||
run: | | ||
make all LDFLAGS="-L$(dirname $GITHUB_WORKSPACE)/usr/lib/x86_64-linux-gnu" CPPFLAGS="-I$(dirname $GITHUB_WORKSPACE)/usr/include -I$(dirname $GITHUB_WORKSPACE)/usr/include/swss" | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2.1.29 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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
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
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
Oops, something went wrong.