Skip to content

Commit 3b15f23

Browse files
authored
Merge pull request github#11861 from michaelnebel/java/testmodeldiff
Java: Update the Model Difference workflow to use the `gh api`.
2 parents af8cb65 + fd80974 commit 3b15f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/mad_modelDiff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
- name: Download database
4141
env:
4242
SLUG: ${{ matrix.slug }}
43+
GH_TOKEN: ${{ github.token }}
4344
run: |
4445
set -x
4546
mkdir lib-dbs
4647
SHORTNAME=${SLUG//[^a-zA-Z0-9_]/}
47-
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"
48+
gh api -H "Accept: application/zip" "/repos/${SLUG}/code-scanning/codeql/databases/java" > "$SHORTNAME.zip"
4949
unzip -q -d "${SHORTNAME}-db" "${SHORTNAME}.zip"
5050
mkdir "lib-dbs/$SHORTNAME/"
5151
mv "${SHORTNAME}-db/"$(ls -1 "${SHORTNAME}"-db)/* "lib-dbs/${SHORTNAME}/"

0 commit comments

Comments
 (0)