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:
120120 - name : " Check and Publish CodeQL Packs"
121121 env :
122122 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123+ PACKS : ${{ matrix.packs }}
123124 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"
125129 CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
126130 PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
127131 PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')
132+ echo "[+] Pack Name :: $PACK_NAME ($PACK_FULLNAME)"
128133
129134 PUBLISHED_VERSION=$(gh api /orgs/advanced-security/packages/container/$PACK_NAME/versions --jq '.[0].metadata.container.tags[0]')
130135 echo "Packs :: ${CURRENT_VERSION} -> ${PUBLISHED_VERSION}"
131136
132137 if [ "$PUBLISHED_VERSION" != "$CURRENT_VERSION" ]; then
133138 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 }"
136141 fi
You can’t perform that action at this time.
0 commit comments