aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.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/build.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/build.yml')
-rw-r--r--.github/workflows/build.yml63
1 files changed, 35 insertions, 28 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 489ed4335..12df38762 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,42 +1,49 @@
1name: Build CI 1name: Build CI
2 2
3# Note: Keep this list in sync with DISTFILES in ../../Makefile.
3on: 4on:
4 push: 5 push:
5 paths-ignore: 6 paths:
6 - '.github/ISSUE_TEMPLATE/*' 7 - 'contrib/**'
7 - .git-blame-ignore-revs 8 - 'etc/**'
8 - .github/dependabot.yml 9 - 'm4/**'
9 - .github/pull_request_template.md 10 - 'platform/**'
10 - .github/workflows/build-extra.yml 11 - 'src/**'
11 - .github/workflows/codeql-analysis.yml 12 - 'test/**'
12 - .github/workflows/codespell.yml 13 - .github/workflows/build.yml
13 - .github/workflows/profile-checks.yml
14 - .gitignore
15 - .gitlab-ci.yml
16 - CONTRIBUTING.md
17 - COPYING 14 - COPYING
15 - Makefile
18 - README 16 - README
19 - README.md
20 - RELNOTES 17 - RELNOTES
21 - SECURITY.md 18 - ci/printenv.sh
19 - config.mk.in
20 - config.sh.in
21 - configure
22 - configure.ac
23 - install.sh
24 - mkdeb.sh
25 - mketc.sh
22 pull_request: 26 pull_request:
23 paths-ignore: 27 paths:
24 - '.github/ISSUE_TEMPLATE/*' 28 - 'contrib/**'
25 - .git-blame-ignore-revs 29 - 'etc/**'
26 - .github/dependabot.yml 30 - 'm4/**'
27 - .github/pull_request_template.md 31 - 'platform/**'
28 - .github/workflows/build-extra.yml 32 - 'src/**'
29 - .github/workflows/codeql-analysis.yml 33 - 'test/**'
30 - .github/workflows/codespell.yml 34 - .github/workflows/build.yml
31 - .github/workflows/profile-checks.yml
32 - .gitignore
33 - .gitlab-ci.yml
34 - CONTRIBUTING.md
35 - COPYING 35 - COPYING
36 - Makefile
36 - README 37 - README
37 - README.md
38 - RELNOTES 38 - RELNOTES
39 - SECURITY.md 39 - ci/printenv.sh
40 - config.mk.in
41 - config.sh.in
42 - configure
43 - configure.ac
44 - install.sh
45 - mkdeb.sh
46 - mketc.sh
40 47
41permissions: # added using https://github.com/step-security/secure-workflows 48permissions: # added using https://github.com/step-security/secure-workflows
42 contents: read 49 contents: read