Skip to content

chore: download phpDocumentor from GitHub releases instead of phive - #10823

Merged
paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:apidocs-phar-download
Nov 24, 2026
Merged

paulbalandan merged 1 commit into
codeigniter4:developfrom
paulbalandan:apidocs-phar-download

Conversation

@paulbalandan

Copy link
Copy Markdown
Member

Description
The "Deploy API Documentation" workflow intermittently fails because phive resolves the phpDocumentor alias through phar.io, which sometimes returns 502.

This downloads phpDocumentor.phar from the latest GitHub release instead:

  • The latest release and the SHA-256 digest of its phpDocumentor.phar asset are read from the GitHub API.
  • The download uses curl with retries on transient errors.
  • The phar is checked against the digest before it is run, and the job fails if the digest is missing or malformed.

The phar is still placed at tools/phpDocumentor, so the build step is unchanged. The phive tool is no longer installed.

The digest comes from the same origin as the file, so it detects a corrupted download but not a compromised release. The GPG verification that phive did is dropped.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added the github_actions Pull requests that update Github_actions code label Nov 24, 2026
@paulbalandan
paulbalandan merged commit 71f6dcc into codeigniter4:develop Nov 24, 2026
8 checks passed
@paulbalandan
paulbalandan deleted the apidocs-phar-download branch November 24, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants