Skip to content
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
10 changes: 4 additions & 6 deletions .github/workflows/emergency-controls.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
---
name: Emergency Controls

# Centralized timeout configuration
env:
EMERGENCY_TIMEOUT_MINUTES: 10

"on":
on:
workflow_dispatch:
inputs:
action:
Expand Down Expand Up @@ -35,6 +31,8 @@ permissions:

jobs:
verify-authorization:
# Only run on manual dispatch, never on push/PR events
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
authorized: ${{ steps.auth-check.outputs.authorized }}
Expand Down Expand Up @@ -62,7 +60,7 @@ jobs:
needs: verify-authorization
if: needs.verify-authorization.outputs.authorized == 'true'
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(env.EMERGENCY_TIMEOUT_MINUTES) }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Loading