From 309e58116af80b58b0d97fbb8a068296380a495d Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Fri, 24 Nov 2023 23:11:23 +0200 Subject: [PATCH] Set more sensible job timeouts --- .github/workflows/docker.yml | 5 +++++ .github/workflows/main.yml | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 11f04824..ac2d96c8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -10,6 +10,8 @@ jobs: # the Dockerfile builds correctly on pull requests. pack: runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: actions: write contents: read @@ -38,7 +40,10 @@ jobs: deploy: # Deploy to DockerHub only on tag push or master branch push if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master' }} + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: contents: read diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe02f832..cbee5686 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,8 @@ env: jobs: format: runs-on: windows-latest + timeout-minutes: 10 + permissions: contents: read @@ -34,7 +36,10 @@ jobs: test: # Tests need access to secrets, so we can't run them against PRs because of limited trust if: ${{ github.event_name != 'pull_request' }} + runs-on: windows-latest + timeout-minutes: 10 + permissions: contents: read @@ -73,6 +78,8 @@ jobs: - DiscordChatExporter.Gui runs-on: windows-latest + timeout-minutes: 10 + permissions: actions: write contents: read @@ -110,6 +117,8 @@ jobs: - pack runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: contents: write @@ -140,6 +149,8 @@ jobs: asset: DiscordChatExporter runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: actions: read contents: write @@ -167,6 +178,8 @@ jobs: notify: needs: deploy runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: contents: read