Skip to content
Latchkey

Require “Allow Edits” workflow (enzymejs/enzyme)

The Require “Allow Edits” workflow from enzymejs/enzyme, explained and optimized by Latchkey.

B

CI health: B - good

Point runs-on at Latchkey and get job timeouts, SHA-pinned actions, self-healing for flaky steps, and up to 58% lower cost, applied automatically.

Grade your own workflow free or run it on Latchkey →
Source: enzymejs/enzyme.github/workflows/require-allow-edits.ymlLicense MITView source

What it does

This is the Require “Allow Edits” workflow from the enzymejs/enzyme repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.

Below, Latchkey shows a faster, safer version produced by its optimization engine.

The workflow

workflow (.yml)
name: Require “Allow Edits”

on: [pull_request_target]

jobs:
  _:
    name: "Require “Allow Edits”"

    runs-on: ubuntu-latest

    steps:
    - uses: ljharb/require-allow-edits@main

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

name: Require “Allow Edits”
 
on: [pull_request_target]
 
jobs:
  _:
    timeout-minutes: 30
    name: "Require “Allow Edits”"
 
    runs-on: latchkey-small
 
    steps:
    - uses: ljharb/require-allow-edits@main
 

What changed

1 third-party action is referenced by a movable tag. Pin it to the commit SHA (Latchkey resolves and applies this automatically) so a repointed tag cannot change what runs.

This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.