diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 0972b1318..767959541 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -18,6 +18,7 @@ jobs: name: CodeQL if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-22.04 + timeout-minutes: 5 steps: - uses: actions/checkout@v4 - uses: github/codeql-action/init@v2 @@ -34,6 +35,7 @@ jobs: name: Trivy Security Scan if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-22.04 + timeout-minutes: 1 steps: - uses: actions/checkout@v4 - name: Run Trivy vulnerability scanner in repo mode @@ -55,6 +57,7 @@ jobs: name: Tests if: github.event_name != 'pull_request' || !github.event.pull_request.draft runs-on: ubuntu-22.04 + timeout-minutes: 5 services: postgres: image: postgres diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 6661bc278..4aae2bae2 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -32,6 +32,7 @@ jobs: - name: frontend file: frontend/openshift.deploy.yml overwrite: true + timeout-minutes: 10 steps: - uses: bcgov-nr/action-deployer-openshift@v2.0.0 with: @@ -55,6 +56,7 @@ jobs: run: working-directory: integration-tests runs-on: ubuntu-22.04 + timeout-minutes: 1 steps: - uses: actions/checkout@v4 - id: cache-npm @@ -85,6 +87,7 @@ jobs: strategy: matrix: browser: [chrome, firefox, edge] + timeout-minutes: 5 steps: - uses: actions/checkout@v4 - id: cache-npm @@ -119,6 +122,7 @@ jobs: strategy: matrix: name: [database, migrations, backend, frontend] + timeout-minutes: 1 steps: - name: Keep last 50 uses: actions/delete-package-versions@v4 @@ -133,6 +137,7 @@ jobs: needs: [integration-tests, cypress-e2e] environment: prod runs-on: ubuntu-22.04 + timeout-minutes: 10 strategy: matrix: name: [database, backend, frontend] @@ -171,6 +176,7 @@ jobs: strategy: matrix: component: [database, backend, frontend] + timeout-minutes: 1 steps: - uses: shrink/actions-docker-registry-tag@v3 with: @@ -196,6 +202,7 @@ jobs: --health-retries 5 ports: - 5432:5432 + timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: joshuaavalon/flyway-action@v3.0.0 diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index e3c7057ac..615595edf 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -16,6 +16,7 @@ jobs: name: Cleanup OpenShift if: "!github.event.pull_request.head.repo.fork" runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Remove OpenShift artifacts run: | @@ -35,6 +36,7 @@ jobs: strategy: matrix: package: [database, migrations, backend, frontend] + timeout-minutes: 1 steps: - uses: shrink/actions-docker-registry-tag@v3 with: diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index a4a9ddcd6..db8cc86f7 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -20,6 +20,7 @@ jobs: runs-on: ubuntu-22.04 permissions: pull-requests: write + timeout-minutes: 1 steps: - name: PR Greeting uses: bcgov-nr/action-pr-description-add@v1.1.0 @@ -61,6 +62,7 @@ jobs: triggers: ('backend/') - package: frontend triggers: ('frontend/') + timeout-minutes: 10 steps: - uses: bcgov-nr/action-builder-ghcr@v1.2.1 with: @@ -78,6 +80,7 @@ jobs: if: "!github.event.pull_request.head.repo.fork" needs: [builds] runs-on: ubuntu-22.04 + timeout-minutes: 10 strategy: matrix: name: [database, backend, frontend]