Skip to content

Restrict pull request workflows to main - #1768

Merged
Goryudyuma merged 4 commits into
mainfrom
codex/restrict-pull-request-workflows
Jul 26, 2026
Merged

Restrict pull request workflows to main#1768
Goryudyuma merged 4 commits into
mainfrom
codex/restrict-pull-request-workflows

Conversation

@Goryudyuma

@Goryudyuma Goryudyuma commented Jul 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Restrict all eight pull request-triggered workflows to pull requests targeting main.
  • Make pull request activity types explicit for workflows that use the default opened, synchronize, and reopened events.
  • Keep closed handling only in workflows that perform explicit close-event processing.

Root cause

The workflows used inconsistent pull_request filters. Some lacked a base-branch filter, while others relied on implicit activity-type defaults, making the intended trigger behavior difficult to audit.

Validation

  • git diff --check
  • Verified every pull_request trigger in .github/workflows has branches: - main.
  • Verified the activity types are explicit and appropriate to each workflow's behavior.

@dev-hato-app dev-hato-app Bot added this to task list Jul 26, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in task list Jul 26, 2026
@github-actions

github-actions Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Super-linter summary

Language Validation result
BASH Pass ✅
BASH_EXEC Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JAVASCRIPT_ES Pass ✅
JAVASCRIPT_PRETTIER Pass ✅
JSON Pass ✅
JSON_PRETTIER Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
RENOVATE Pass ✅
SHELL_SHFMT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
TYPESCRIPT_ES Pass ✅
TYPESCRIPT_PRETTIER Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@Goryudyuma
Goryudyuma marked this pull request as ready for review July 26, 2026 07:54
@Goryudyuma
Goryudyuma requested a review from massongit July 26, 2026 07:54
@Goryudyuma
Goryudyuma enabled auto-merge (squash) July 26, 2026 10:41
@Goryudyuma
Goryudyuma merged commit 0806961 into main Jul 26, 2026
32 checks passed
@Goryudyuma
Goryudyuma deleted the codex/restrict-pull-request-workflows branch July 26, 2026 10:45
@github-project-automation github-project-automation Bot moved this from In Progress to Done in task list Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants