From 1b64e1cd48b9b32a4dc70ceea6d0e19720637c45 Mon Sep 17 00:00:00 2001 From: DrAlexD Date: Fri, 12 Jan 2024 17:11:06 +0300 Subject: [PATCH] Workflow test --- .github/workflows/codeql.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..1dd8209 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,30 @@ +name: Install and run codeQL + +on: + pull_request: + push: + branches: + - 'develop' + +jobs: + install_and_run_codeql: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: advanced-security/codeql-bundle-action/download-bundle@v2 + id: download-bundle + with: + tag: "latest" + - uses: advanced-security/codeql-bundle-action/create-bundle@v2 + id: create-bundle + with: + bundle-path: ${{ steps.download-bundle.outputs.bundle-path }} + packs: "octo/cpp-queries,octo/cpp-all,octo/cpp-customizations" + - uses: actions/upload-artifact@v3 + with: + name: codeql-bundle.tar.gz + path: ${{ steps.create-bundle.outputs.output-path }} + - run: | + tar -xzf ${{ steps.create-bundle.outputs.output-path }} + codeql test run languages\cpp \ No newline at end of file