QL: use environment instead of dynamic shell script construction

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Erik Krogh Kristensen
2021-12-20 09:56:10 +01:00
committed by GitHub
parent af47cba09a
commit 8b53cca3e8

View File

@@ -169,13 +169,14 @@ jobs:
- name: Create CodeQL config file
run: |
echo "paths:" > ${CONF}
echo " - ${{ matrix.folder }}" >> ${CONF}
echo " - ${FOLDER}" >> ${CONF}
echo "paths-ignore:" >> ${CONF}
echo " - ql/ql/test" >> ${CONF}
echo "Config file: "
cat ${CONF}
env:
CONF: ./ql-for-ql-config.yml
FOLDER: ${{ matrix.folder }}
- name: Initialize CodeQL
uses: github/codeql-action/init@erik-krogh/ql