We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af8cb65 + fd80974 commit 3b15f23Copy full SHA for 3b15f23
.github/workflows/mad_modelDiff.yml
@@ -40,12 +40,12 @@ jobs:
40
- name: Download database
41
env:
42
SLUG: ${{ matrix.slug }}
43
+ GH_TOKEN: ${{ github.token }}
44
run: |
45
set -x
46
mkdir lib-dbs
47
SHORTNAME=${SLUG//[^a-zA-Z0-9_]/}
- projectId=`curl -s https://lgtm.com/api/v1.0/projects/g/${SLUG} | jq .id`
48
- curl -L "https://lgtm.com/api/v1.0/snapshots/$projectId/java" -o "$SHORTNAME.zip"
+ gh api -H "Accept: application/zip" "/repos/${SLUG}/code-scanning/codeql/databases/java" > "$SHORTNAME.zip"
49
unzip -q -d "${SHORTNAME}-db" "${SHORTNAME}.zip"
50
mkdir "lib-dbs/$SHORTNAME/"
51
mv "${SHORTNAME}-db/"$(ls -1 "${SHORTNAME}"-db)/* "lib-dbs/${SHORTNAME}/"
0 commit comments