diff options
author | 2024-02-03 20:24:45 +0000 | |
---|---|---|
committer | 2024-02-03 20:24:45 +0000 | |
commit | 180bdee34774ed56c3a1822eb69d51e4cd9e5eaf (patch) | |
tree | 24808a5f0085478b69ba63a25b2b1008092e8eab /.github/workflows/check-c.yml | |
parent | geeqie.profile: allow Lua interpreter (#6183) (diff) | |
download | firejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.tar.gz firejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.tar.zst firejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.zip |
ci: add timeout limits (#6178)
So that they fail early instead of letting them run indefinitely when
there are problems with the CI infrastructure.
Use 5 minutes for the jobs that usually complete in under a minute
(check-profiles and codespell) and 10 minutes for the rest (most jobs
usually take 1-3 minutes).
Diffstat (limited to '.github/workflows/check-c.yml')
-rw-r--r-- | .github/workflows/check-c.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml index 16e034d48..ef952d132 100644 --- a/.github/workflows/check-c.yml +++ b/.github/workflows/check-c.yml | |||
@@ -43,6 +43,7 @@ permissions: # added using https://github.com/step-security/secure-workflows | |||
43 | jobs: | 43 | jobs: |
44 | scan-build: | 44 | scan-build: |
45 | runs-on: ubuntu-22.04 | 45 | runs-on: ubuntu-22.04 |
46 | timeout-minutes: 10 | ||
46 | steps: | 47 | steps: |
47 | - name: Harden Runner | 48 | - name: Harden Runner |
48 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 | 49 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 |
@@ -74,6 +75,7 @@ jobs: | |||
74 | 75 | ||
75 | cppcheck: | 76 | cppcheck: |
76 | runs-on: ubuntu-22.04 | 77 | runs-on: ubuntu-22.04 |
78 | timeout-minutes: 10 | ||
77 | steps: | 79 | steps: |
78 | - name: Harden Runner | 80 | - name: Harden Runner |
79 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 | 81 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 |
@@ -101,6 +103,7 @@ jobs: | |||
101 | # scan all files also with older cppcheck version from ubuntu 20.04. | 103 | # scan all files also with older cppcheck version from ubuntu 20.04. |
102 | cppcheck_old: | 104 | cppcheck_old: |
103 | runs-on: ubuntu-20.04 | 105 | runs-on: ubuntu-20.04 |
106 | timeout-minutes: 10 | ||
104 | steps: | 107 | steps: |
105 | - name: Harden Runner | 108 | - name: Harden Runner |
106 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 | 109 | uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 |
@@ -129,6 +132,7 @@ jobs: | |||
129 | contents: read | 132 | contents: read |
130 | security-events: write | 133 | security-events: write |
131 | runs-on: ubuntu-latest | 134 | runs-on: ubuntu-latest |
135 | timeout-minutes: 10 | ||
132 | 136 | ||
133 | steps: | 137 | steps: |
134 | - name: Harden Runner | 138 | - name: Harden Runner |