Skip to content

Commit 6ab3926

Browse files
authored
Merge pull request #56 from advanced-security/GeekMasher-patch-1
Fix Code Injection issues
2 parents f04b779 + c062478 commit 6ab3926

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/codeql-packs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ jobs:
4747
- name: "Build and Publish CodeQL Packs"
4848
env:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
PACKS: ${{ matrix.packs }}
5051
run: |
51-
PACK_PATH="${{ matrix.packs }}/qlpack.yml"
52+
PACK_PATH="${PACKS}/qlpack.yml"
5253
CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
5354
PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
5455
PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')

.github/workflows/python-linting.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727
steps:
2828
- name: Set matrix
2929
id: set-matrix
30+
env:
31+
VERSIONS: ${{ inputs.versions }}
3032
run: |
31-
versions="${{ inputs.versions }}"
32-
echo "Version Input :: $versions"
33-
matrix=$(echo "$versions" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
33+
set -e
34+
echo "Version Input :: $VERSIONS"
35+
matrix=$(echo "$VERSIONS" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
3436
echo "matrix :: [$matrix]"
3537
echo "matrix=[$matrix]" >> "$GITHUB_OUTPUT"
3638
@@ -71,9 +73,10 @@ jobs:
7173
fi
7274
7375
- name: Run linting
76+
env:
77+
TOOL: ${{ inputs.tool }}
7478
run: |
7579
set -e
76-
TOOL="${{ inputs.tool }}"
7780
if [[ "$TOOL" == "ruff" ]]; then
7881
pip install ruff
7982
ruff check

.github/workflows/python-testing.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
steps:
2121
- name: Set matrix
2222
id: set-matrix
23+
env:
24+
VERSIONS: ${{ inputs.versions }}
2325
run: |
24-
versions="${{ inputs.versions }}"
25-
echo "Version Input :: $versions"
26-
matrix=$(echo "$versions" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
26+
set -e
27+
echo "Version Input :: $VERSIONS"
28+
matrix=$(echo "$VERSIONS" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
2729
echo "matrix :: [$matrix]"
2830
echo "matrix=[$matrix]" >> "$GITHUB_OUTPUT"
2931

0 commit comments

Comments
 (0)