File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -120,17 +120,22 @@ jobs:
120
120
- name : " Check and Publish CodeQL Packs"
121
121
env :
122
122
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
+ PACKS : ${{ matrix.packs }}
123
124
run : |
124
- PACK_PATH=ql/${{ matrix.packs }}/qlpack.yml
125
+ set -e
126
+
127
+ PACK_PATH="ql/${PACKS}/qlpack.yml"
128
+ echo "[+] Pack Path :: $PACK_PATH"
125
129
CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
126
130
PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
127
131
PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')
132
+ echo "[+] Pack Name :: $PACK_NAME ($PACK_FULLNAME)"
128
133
129
134
PUBLISHED_VERSION=$(gh api /orgs/advanced-security/packages/container/$PACK_NAME/versions --jq '.[0].metadata.container.tags[0]')
130
135
echo "Packs :: ${CURRENT_VERSION} -> ${PUBLISHED_VERSION}"
131
136
132
137
if [ "$PUBLISHED_VERSION" != "$CURRENT_VERSION" ]; then
133
138
gh extension install github/gh-codeql
134
- gh codeql pack install "ql/${{ matrix.packs } }"
135
- gh codeql pack publish "ql/${{ matrix.packs } }"
139
+ gh codeql pack install "ql/${PACKS }"
140
+ gh codeql pack publish "ql/${PACKS }"
136
141
fi
You can’t perform that action at this time.
0 commit comments