Skip to content

Fix macOS CI, pin actions to SHAs, add Dependabot - #61

Merged
rkoopmans merged 2 commits into
tinify:masterfrom
rkoopmans:fix-macos-ci
Nov 25, 2026
Merged

rkoopmans merged 2 commits into
tinify:masterfrom
rkoopmans:fix-macos-ci

Conversation

@rkoopmans

@rkoopmans rkoopmans commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • Bump setup-php to 2.40.0. macos-latest is now macOS 26, which no longer taps homebrew/core; setup-php 2.37.2 stalls installing PHP there and the macOS jobs time out. 2.40.0 installs PHP from prebuilt builds.
  • Pin all actions to commit SHAs (with version comments) and move ci-cd.yaml to checkout v6, like phpstan.yaml.
  • Add Dependabot for GitHub Actions: weekly, one grouped PR, updates the SHA and the version comment

Summary by CodeRabbit

  • Chores
    • Configured weekly checks for GitHub Actions dependencies.
    • Pinned GitHub Actions used in CI, integration tests, and static analysis to specific revisions.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 5 included reviews currently available. Your 24 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 851ec745-fd7a-4d93-9dc1-a7ae827fd433
Commits

Reviewing files that changed from the base of the PR and between 4e83958 and 7938260.

Files selected for processing: 3

  • .github/dependabot.yml
  • .github/workflows/ci-cd.yaml
  • .github/workflows/phpstan.yaml

No actionable comments were generated in the recent review.

Walkthrough

Dependabot now checks GitHub Actions dependencies weekly. The CI and PHPStan workflows replace action version tags with commit-SHA-pinned references.

Changes: GitHub Actions dependency maintenance

Layer / File(s) Summary
Update policy and workflow pins
.github/dependabot.yml, .github/workflows/ci-cd.yaml, .github/workflows/phpstan.yaml
Dependabot checks GitHub Actions dependencies weekly and groups updates under a chore commit-message prefix with scope. The CI and PHPStan workflows pin their checkout and setup-php actions to commit SHAs. Composer settings remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • tinify/tinify-php#60: Updates setup-php to 2.40.0, matching the setup-php version change in this PR.

Suggested reviewers: tijmenbruggeman

Merge Risk: Minimal · previous review 4e839

This change fixes macOS CI timeouts and pins GitHub Actions to commit SHAs, and adds weekly grouped Dependabot updates. It does not affect production behavior, and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names three changes that the changeset contains: the macOS CI fix (setup-php bumped to 2.40.0 for the macOS 26 timeout), pinning actions to commit SHAs in the workflows, and adding the Depen…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names three changes that the changeset contains: the macOS CI fix (setup-php bumped to 2.40.0 for the macOS 26 timeout), pinning actions to commit SHAs in the workflows, and adding the Dependabot configuration. It is a single, concise sentence with no vague terms. Because it lists three items, it covers the main change and the supporting changes, which is acceptable for a title.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the actions each week,
And pins each tag to a commit unique.
Checkout and PHP stand in line,
While Composer keeps its settings fine.
The workflow hops along its track.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 0c881eba-4ca9-4ee0-ab3f-1e3259bc807c
Commits

Reviewing files that changed from the base of the PR and between 80ebfa6 and 4e83958.

Files selected for processing: 3

  • .github/dependabot.yml
  • .github/workflows/ci-cd.yaml
  • .github/workflows/phpstan.yaml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Weekly, grouped into a single PR.
Also moves ci-cd.yaml to checkout v6, matching phpstan.yaml.
@rkoopmans
rkoopmans merged commit 90e733c into tinify:master Nov 25, 2026
18 checks passed
@rkoopmans
rkoopmans deleted the fix-macos-ci branch November 25, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant