Skip to content

Commit 02afd30

Browse files
authored
CodeQL pipeline workflow update (github#35700)
1 parent ed3f9c2 commit 02afd30

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/sync-codeql-cli.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
cancel-in-progress: true
2626

2727
jobs:
28-
generate-decorated-files:
28+
generate-codeql-files:
2929
if: github.repository == 'github/docs-internal'
3030
runs-on: ubuntu-latest
3131
steps:
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
# By default, only the most recent commit of the `main` branch
4545
# will be checked out
46+
token: ${{ secrets.DOCS_BOT_FR }}
4647
repository: github/semmle-code
4748
path: semmle-code
4849
ref: ${{ github.event.inputs.SOURCE_BRANCH }}
@@ -67,6 +68,7 @@ jobs:
6768
sudo dpkg -i pandoc-3.0.1-1-amd64.deb
6869
# Output the pandoc version installed
6970
pandoc -v
71+
rm pandoc-3.0.1-1-amd64.deb
7072
7173
- name: Sync the CodeQL CLI data
7274
run: |
@@ -82,8 +84,9 @@ jobs:
8284
run: |
8385
# If nothing to commit, exit now. It's fine. No orphans.
8486
changes=$(git diff --name-only | wc -l)
85-
if [[ $changes -eq 0 ]]; then
86-
echo "There are no changes to commit after running src/rest/scripts/update-files.js. Exiting..."
87+
untracked=$(git status --untracked-files --short | wc -l)
88+
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then
89+
echo "There are no changes to commit after running src/codeql/scripts/sync.js. Exiting..."
8790
exit 0
8891
fi
8992

0 commit comments

Comments
 (0)