File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -235,3 +235,42 @@ jobs:
235235 shell : bash
236236 run : |
237237 codeql database analyze --search-path "${{ runner.temp }}/ruby-bundle" --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls
238+
239+ # This is a copy of the 'test' job that runs in a centos7 container.
240+ # This tests that the extractor works correctly on systems with an old glibc.
241+ test-centos7 :
242+ defaults :
243+ run :
244+ working-directory : ${{ github.workspace }}
245+ strategy :
246+ fail-fast : false
247+ runs-on : ubuntu-latest
248+ container :
249+ image : centos:centos7
250+ needs : [package]
251+ steps :
252+ - uses : actions/checkout@v3
253+ - name : Fetch CodeQL
254+ uses : ./.github/actions/fetch-codeql
255+
256+ - name : Download Ruby bundle
257+ uses : actions/download-artifact@v3
258+ with :
259+ name : codeql-ruby-bundle
260+ path : ${{ runner.temp }}
261+ - name : Unzip Ruby bundle
262+ shell : bash
263+ run : unzip -q -d "${{ runner.temp }}/ruby-bundle" "${{ runner.temp }}/codeql-ruby-bundle.zip"
264+
265+ - name : Run QL test
266+ shell : bash
267+ run : |
268+ codeql test run --search-path "${{ runner.temp }}/ruby-bundle" --additional-packs "${{ runner.temp }}/ruby-bundle" ruby/ql/test/library-tests/ast/constants/
269+ - name : Create database
270+ shell : bash
271+ run : |
272+ codeql database create --search-path "${{ runner.temp }}/ruby-bundle" --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
273+ - name : Analyze database
274+ shell : bash
275+ run : |
276+ codeql database analyze --search-path "${{ runner.temp }}/ruby-bundle" --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls
You can’t perform that action at this time.
0 commit comments