aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/codeql-analysis.yml
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-14 19:51:27 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-20 06:20:40 -0300
commitb589045b0fde572b892b8fe9333e2148f6b28452 (patch)
treefbb575d093d2eefe5ae8e9b865e462ea76b81576 /.github/workflows/codeql-analysis.yml
parentMerge pull request #5956 from kmk3/build-fix-dep-syntax (diff)
downloadfirejail-b589045b0fde572b892b8fe9333e2148f6b28452.tar.gz
firejail-b589045b0fde572b892b8fe9333e2148f6b28452.tar.zst
firejail-b589045b0fde572b892b8fe9333e2148f6b28452.zip
ci: use path whitelists instead of blacklists
That is, replace `paths-ignore` with `paths`. This should reduce the number of unnecessary workflow executions and the frequency at which paths are changed. It also reduces the overall number of paths used. Also, add the missing ci/printenv.sh to the path whitelists.
Diffstat (limited to '.github/workflows/codeql-analysis.yml')
-rw-r--r--.github/workflows/codeql-analysis.yml70
1 files changed, 26 insertions, 44 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 344090cfd..a4c4a1146 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -7,51 +7,33 @@ name: "CodeQL"
7 7
8on: 8on:
9 push: 9 push:
10 paths-ignore: 10 paths:
11 - '.github/ISSUE_TEMPLATE/*' 11 - 'm4/**'
12 - 'contrib/syntax/**' 12 - 'src/**.c'
13 - 'contrib/vim/**' 13 - 'src/**.h'
14 - 'etc/**' 14 - 'src/**.mk'
15 - 'src/man/*.txt' 15 - 'src/**Makefile'
16 - .git-blame-ignore-revs 16 - .github/workflows/codeql-analysis.yml
17 - .github/dependabot.yml 17 - Makefile
18 - .github/pull_request_template.md 18 - ci/printenv.sh
19 - .github/workflows/build-extra.yml 19 - config.mk.in
20 - .github/workflows/build.yml 20 - config.sh.in
21 - .github/workflows/codespell.yml 21 - configure
22 - .github/workflows/profile-checks.yml 22 - configure.ac
23 - .gitignore
24 - .gitlab-ci.yml
25 - CONTRIBUTING.md
26 - COPYING
27 - README
28 - README.md
29 - RELNOTES
30 - SECURITY.md
31 - src/firecfg/firecfg.config
32 pull_request: 23 pull_request:
33 paths-ignore: 24 paths:
34 - '.github/ISSUE_TEMPLATE/*' 25 - 'm4/**'
35 - 'contrib/syntax/**' 26 - 'src/**.c'
36 - 'contrib/vim/**' 27 - 'src/**.h'
37 - 'etc/**' 28 - 'src/**.mk'
38 - 'src/man/*.txt' 29 - 'src/**Makefile'
39 - .git-blame-ignore-revs 30 - .github/workflows/codeql-analysis.yml
40 - .github/dependabot.yml 31 - Makefile
41 - .github/pull_request_template.md 32 - ci/printenv.sh
42 - .github/workflows/build-extra.yml 33 - config.mk.in
43 - .github/workflows/build.yml 34 - config.sh.in
44 - .github/workflows/codespell.yml 35 - configure
45 - .github/workflows/profile-checks.yml 36 - configure.ac
46 - .gitignore
47 - .gitlab-ci.yml
48 - CONTRIBUTING.md
49 - COPYING
50 - README
51 - README.md
52 - RELNOTES
53 - SECURITY.md
54 - src/firecfg/firecfg.config
55 schedule: 37 schedule:
56 - cron: '0 7 * * 2' 38 - cron: '0 7 * * 2'
57 39