Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add timeout limits #6178

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
build-clang:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
scan-build:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:

cppcheck:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down Expand Up @@ -101,6 +103,7 @@ jobs:
# scan all files also with older cppcheck version from ubuntu 20.04.
cppcheck_old:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down Expand Up @@ -129,6 +132,7 @@ jobs:
contents: read
security-events: write
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Harden Runner
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
profile-checks:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
contents: read
security-events: write
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Harden Runner
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
codespell:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
test-main:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
SHELL: /bin/bash
steps:
Expand Down Expand Up @@ -96,6 +97,7 @@ jobs:

test-fs:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
SHELL: /bin/bash
steps:
Expand Down Expand Up @@ -134,6 +136,7 @@ jobs:

test-environment:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
SHELL: /bin/bash
steps:
Expand Down Expand Up @@ -172,6 +175,7 @@ jobs:

test-utils:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
SHELL: /bin/bash
steps:
Expand Down Expand Up @@ -212,6 +216,7 @@ jobs:

test-network:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
SHELL: /bin/bash
steps:
Expand Down
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

build_ubuntu_package:
image: ubuntu:rolling
timeout: 10 minutes
variables:
DEBIAN_FRONTEND: noninteractive
script:
Expand All @@ -24,6 +25,7 @@ build_ubuntu_package:

build_debian_package:
image: debian:buster
timeout: 10 minutes
variables:
DEBIAN_FRONTEND: noninteractive
script:
Expand All @@ -40,6 +42,7 @@ build_debian_package:

build_redhat_package:
image: almalinux:latest
timeout: 10 minutes
script:
- dnf update -y
- dnf install -y rpm-build gcc make
Expand All @@ -51,6 +54,7 @@ build_redhat_package:

build_fedora_package:
image: fedora:latest
timeout: 10 minutes
script:
- dnf update -y
- dnf install -y rpm-build gcc make
Expand All @@ -62,6 +66,7 @@ build_fedora_package:

build_src_package:
image: alpine:latest
timeout: 10 minutes
script:
- apk update
- apk upgrade
Expand All @@ -74,6 +79,7 @@ build_src_package:

build_no_apparmor:
image: ubuntu:latest
timeout: 10 minutes
variables:
DEBIAN_FRONTEND: noninteractive
script:
Expand All @@ -92,6 +98,7 @@ build_no_apparmor:

debian_ci:
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
timeout: 10 minutes
variables:
DEBFULLNAME: "$GITLAB_USER_NAME"
DEBEMAIL: "$GITLAB_USER_EMAIL"
Expand Down
Loading