-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (39 loc) · 1.37 KB
/
update-deps.yml
File metadata and controls
47 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Update CodeQL
on:
schedule:
# Every Monday at 14:00 UTC
- cron: "0 14 * * 1"
workflow_dispatch:
jobs:
queries:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.language }}
cancel-in-progress: true
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Setup CodeQL
uses: ./.github/actions/install-codeql
- name: "Update CodeQL Pack Dependencies"
run: |
set -e
echo "Find all directoring with a qlpack.yml file"
for dir in $(find . -name qlpack.yml -exec dirname {} \;); do
echo "Updating dependencies in $dir"
codeql pack upgrade "$dir"
done
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ github.token }}
title: "Chore: Update CodeQL Pack Dependencies"
commit-message: "[chore]: Update CodeQL Pack Dependencies"
body: |
This is an automatically created chore to update the CodeQL pack dependencies for all languages.
branch: "chore/update-codeql-pack-dependencies"
labels: "version"
delete-branch: true