GitHub Actions runs project checks when changes reach a repository. Codex prepares a file with the required commands; GitHub runs them in a separate environment and shows the result in Actions.
Example: a website form change breaks a test, which is detected before publication. Another example is a build finding an error in an English page. This is a GitHub cloud feature, not a Codex plugin. A first check does not need hosting keys or website deployment permissions.
Check success and failure
- Open the project in Codex. The assistant finds existing workflows and actual install, build and test commands in project files. Extend an existing check rather than duplicate it.
- Ask for a workflow in
.github/workflowsfor pull requests and the chosen branch. Follow GitHub guidance: limit permissions, for example to repository reading, and pin third-party actions to full commit hashes from their official repositories. - Check a successful run on the original project. Then introduce a test-detectable error in a separate practice branch and verify that the check fails for the expected reason.
- Fix it and run again. Read the log and keep the check result; add deployment as a separate approved stage.
GitHub discovers .yml or .yaml files in .github/workflows. The official first example shows the file location and where to view results. The assistant selects repository branches and events after checking the current process.
For a normal code check, start with permissions: contents: read. Verify external actions against their official repositories and pin full commit versions, or use workflow dependency lockfiles supported by the project, following GitHub security guidance. Do not run an unfamiliar pull request's code with secrets or elevated permissions.
If no run appears, check the event, branch and repository Actions access. If a step fails, read its log first: installation, testing and deployment are different operations. A green run that skipped the required tests does not verify your project.
What you will have
You will have checks that distinguish working and broken versions. Open the run and relevant job in Actions and confirm that the project's commands actually ran. Costs and available minutes depend on your repository and account; check them before regular runs.
To stop it, disable the specific workflow and separately cancel an active run if needed. Check schedules and issued secrets without deleting all repository workflows. For a detected error, continue with Fix a project bug; general setup is covered in the tool connection plan.
Paste into Codex:
Find the current project, its GitHub repository, existing workflows and actual install, build and test commands. Prepare or extend GitHub Actions checks for the appropriate pull request and branch without duplicating an existing process.
Choose minimal permissions using official GitHub guidance and pin external actions to verified full commit hashes or a suitable project lockfile. Agree on the plan before pushing changes. Website deployment, hosting access and new secrets are outside this task.
Verify a successful run. In a separate practice branch, verify a deliberate error caught by a test, then the fix and a successful rerun. Read each run's log and show the commands that actually executed. If a remote run is unavailable, distinguish local verification from the unverified GitHub run. Save how to disable one workflow and cancel an active run.
