Skip to content

ci: pin actions and composer image, add read-only permissions and Dependabot - #112

Merged
TorstenDittmann merged 1 commit into
mainfrom
chore/pin-actions
Oct 22, 2026
Merged

TorstenDittmann merged 1 commit into
mainfrom
chore/pin-actions

Conversation

@TorstenDittmann

Copy link
Copy Markdown
Contributor

Requested by Torsten · project thread

What does this PR do?

This PR pins this repo's CI inputs. All three workflows used mutable references and had no permissions: block.

  • Actions pinned by SHA:
    • actions/checkout@v3 (end-of-life) becomes v6.0.2.
    • shivammathur/setup-php@v2 becomes 2.37.2.
    • These are the same pins used across appwrite and appwrite-labs.
  • Composer image pinned. docker run … composer (implicit :latest) in the CodeQL and Linter jobs becomes composer:2.10.3@sha256:da624c2c…, the digest latest resolves to today.
  • permissions: contents: read added to all three workflows. They only run on pull_request and only need to read the repo.
  • .github/dependabot.yml added for github-actions and composer, so the pins get bumped.

All SHAs were checked against the upstream tags with git ls-remote.

Test Plan

  • CodeQL, Linter and Tests (8.1, 8.2, 8.3, nightly) pass on this PR.

Related PRs and Issues

Supply-chain audit, finding #12.


Generated by Claude Code

…endabot

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ac4dnDdQmFnpHYz8rHwiu7
@TorstenDittmann TorstenDittmann self-assigned this Oct 22, 2026
@hansi-codes

hansi-codes Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The pinned inputs and read-only permissions are compatible with these workflows, and no behavior regressions were identified.

The workflows now pin checkout, PHP setup, and Composer image inputs, and declare read-only repository permissions. Dependabot is configured to check GitHub Actions and Composer dependencies weekly.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 4
File Change
.github/dependabot.yml Adds weekly Dependabot updates for GitHub Actions and Composer.
.github/workflows/codeql-analysis.yml Pins checkout and Composer and limits workflow permissions to repository read access.
.github/workflows/linter.yml Pins checkout and Composer and limits workflow permissions to repository read access.
.github/workflows/tests.yml Pins checkout and PHP setup and limits workflow permissions to repository read access.

Reviewed b1cbb2c · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@TorstenDittmann
TorstenDittmann merged commit 3e4af4c into main Oct 22, 2026
7 checks passed
@TorstenDittmann
TorstenDittmann deleted the chore/pin-actions branch October 22, 2026 13:42
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.

2 participants