Skip to content
JacobPEvansPublic

About

Enterprise-central reusable workflows, Renovate preset and CI policy

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

717 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JacobPEvans/.github

Reusable GitHub workflows for generic CI, releases, linting, validation, and repository policy, with shared tooling and configuration.

AI review and agent automation workflows live in JacobPEvans/.github-ai.

Pull request descriptions

Every pull request description follows the pull request template.

Reusable workflows

Workflow Purpose Inputs
_flake-lock-fresh.yml Owned flake-input pins; optional GitHub input age. runner_label, max_age_days.
_org-index.yml Org index and llms.txt. visibility_scope, output_path.
_promotion-pr.yml Weekly develop to main promotion pull request. None.

visibility_scope accepts public or all; output_path defaults to profile/README.md.

The caller needs the GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY secret and the GH_ACTION_RELEASE_PLEASE_APP_ID organization variable. The App needs contents and pull request write on the caller repository, plus repository metadata read for visibility_scope: all. Public scope lists repositories with the workflow token. All scope mints an organization read token. Both open the index pull request with a caller-repository token.

JacobPEvans/.github calls this workflow weekly and on manual dispatch with visibility_scope: public. For JacobPEvans/.github-private, the caller is:

name: Organization Index

on:
  schedule:
    - cron: "17 8 * * 1"
  workflow_dispatch:

permissions: {}

jobs:
  org-index:
    permissions: {}
    uses: JacobPEvans/.github/.github/workflows/_org-index.yml@v1
    with:
      visibility_scope: all
    secrets:
      GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY: ${{ secrets.GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY }}

_promotion-pr.yml opens a pull request from develop into main on a git-flow repository when develop has commits that main lacks and no promotion pull request is open. The pull request is titled chore: promote develop to main, carries the release:in-progress label, and is set to auto-merge by merge commit.

The caller needs the GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY secret and the GH_ACTION_RELEASE_PLEASE_APP_ID organization variable. The App needs contents write and pull request write on the caller repository. Callers pinned to @v1 resolve this workflow once a release moves the v1 tag to a commit that contains it. A git-flow repository calls it weekly with:

name: Weekly Promotion PR
on:
  schedule:
    - cron: "13 12 * * 6"
permissions: {}
jobs:
  promotion-pr:
    uses: JacobPEvans/.github/.github/workflows/_promotion-pr.yml@v1
    secrets:
      GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY: ${{ secrets.GH_ACTION_RELEASE_PLEASE_PRIVATE_KEY }}

Required workflow

main-source-gate.yml requires pull requests targeting main in ruleset-targeted repositories to use develop or hotfix/<name> from the same repository. An organization's .github repository can call it through workflow_call for an organization ruleset. Organization .github repositories use trunk flow and are not ruleset targets, so the workflow skips any repository named .github.

CI Gate (Merge Gate)

_ci-gate.yml is the reusable branch-protection gate: callers add one thin job (uses: JacobPEvans/.github/.github/workflows/_ci-gate.yml@v1) and the Merge Gate check aggregates the following named jobs, each with its own input toggle:

Job Default Runs when
Classify CI scope (Jev) always every event; narrows other checks, never widens them
Detect Changes always every event; computes the caller's path filters
Nix Validate / Nix Build off the nix filter matches (Nix Build also needs its toggle)
Markdown Lint on the markdown filter matches
File Size on the nix, markdown or terraform filters match
Token Limits off the markdown filter matches
Python Security / Python CI off the python filter matches
Ansible CI off the ansible filter matches
Renovate Annotations off once enabled, every PR (not filter-gated)
OpenTofu CI off the terraform filter matches
OSV Scanner off once enabled, every PR (not filter-gated)
Dependency Review on public-repo PRs only (needs Advanced Security)
Workflow Security (zizmor) on every PR (not filter-gated)
Agent Patch Guard on every PR (not filter-gated); fails only agent-authored PRs
Uses Resolve always every event; a broken reusable-workflow reference cannot merge
Repo Tests off once test_command is set
Workflow Lint off once enabled; actionlint over the caller's workflows
Queue Watchdog always cancels the run if a job waits on a runner too long

Agent Patch Guard keeps agent-authored PRs from making CI green by deleting tests, adding suppression directives, skip markers, Terraform data "external" blocks, or new scripts under scripts//bin/. It enforces only when a commit is authored or committed by a login in the org variable AGENT_PATCH_GUARD_LOGINS (comma list; unset defaults to logins ending in [bot]); other PRs get warning annotations. A human with triage access can add the agent-patch-guard:approved label to approve a reviewed exception, such as a genuinely obsolete test.

Molecule reusable workflow

Callers of .github/workflows/_molecule.yml can set galaxy_force_install to refresh built-in Galaxy requirements installs on cache hits, pre_steps_script to run a caller-repository script before each scenario, extra_env to pass non-secret KEY=VALUE lines to Molecule, and static_checks to run one shell command per line once in the scenario discovery job. Caller scripts receive the scenario name as their first argument. pull_request_timeout_minutes and pull_request_discover_timeout_minutes set per-caller PR timeouts while keeping the existing 25- and 15-minute defaults; both are capped at 360 minutes. molecule_roles_path can add a caller-repository-relative role path; its empty default uses the configured Ansible home. Repo-specific jobs remain in the caller.

About

Enterprise-central reusable workflows, Renovate preset and CI policy

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages