Skip to content

Commit

Permalink
added CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Mar 22, 2024
1 parent d23e9c1 commit 79ee77c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

on: [push, pull_request]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['cpp']

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Build
run: |
CHROMIUM_TAG=$(cat VERSION)
BORINGSSL_REVISION=$(curl -s https://raw.githubusercontent.com/chromium/chromium/$CHROMIUM_TAG/DEPS | grep "'boringssl_revision':" | awk -F"'" '{print $4}')
git clone https://github.com/google/boringssl.git
cd boringssl
git checkout $BORINGSSL_REVISION
cp -r ../src/gostssl.cpp ./
cp -r ../src/msspi/src/* ./
cp -r ../src/msspi/third_party/cprocsp/include/* ./include/
g++ -Wall -std=c++14 -g -O2 -fPIC -Werror -Wno-unused-function -I./include gostssl.cpp -c -o gostssl.o
g++ -Wall -std=c++14 -g -O2 -fPIC -Werror -Wno-unused-function -I./include msspi.cpp -c -o msspi.o
g++ -shared -o libgostssl.so gostssl.o msspi.o
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 79ee77c

Please sign in to comment.