From e864186c577bfcb12c0e148a437930e4a5a6cc2a Mon Sep 17 00:00:00 2001 From: Joseph Langley Date: Thu, 10 Jun 2021 08:21:30 -0400 Subject: fix(action): Let Autobuild do most of the work Try preparing configure with autogen.sh, then letting codeql-action/autobuild do it's work prior to analysis. --- .github/workflows/codeql-analysis.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 21021fe..309f6b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v2 - name: Apt run: sudo apt-get install gcc autoconf bison gettext autopoint help2man lzip texinfo texlive - + - name: Checkout repository + uses: actions/checkout@v2 + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 @@ -52,11 +52,17 @@ jobs: # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - + + # Autobuild expects to start by running configure. + # Run autogen.sh to ensure configure exists. + - name: Autogen + run: | + ./autogen.sh + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - #- name: Autobuild - # uses: github/codeql-action/autobuild@v1 + - name: Autobuild + uses: github/codeql-action/autobuild@v1 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -65,12 +71,12 @@ jobs: # and modify them (or add more) to build your code if your project # uses a compiled language - - name: Build - run: | - ./autogen.sh - ./configure - make - make check + #- name: Build + # run: | + # ./autogen.sh + # ./configure + # make + # make check - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 -- cgit v1.2.1