Skip to content

Tighten CI workflow security and dedupe e2e setup #14289

Closed

Description

@ChiragAgg5k

Tracks PR #14288.

Plan

Goal: Tighten the permissions and security of the repo's GitHub Actions workflows and remove the duplicated e2e image setup, without changing what runs on which change. This is the first step of a wider CI cleanup.

What changes (PR #14288):

  • .github/workflows/codeql-analysis.yml targeted master, so only the weekly cron fired; it now runs on PRs and pushes to main.
  • The Docker Hub login, app image pull and compose pull were copied into five e2e jobs in ci.yml; they move into a new .github/actions/images/action.yml.
  • ci.yml stops granting packages: write to every job. cleanup-cache.yml drops the dead GHCR step and the deprecated gh-actions-cache extension. Workflows without a permissions: block get minimal ones.
  • zizmor fixes: expressions in run: moved to env:, snippet QA actions pinned by SHA, persist-credentials: false on checkouts, narrower app-token permissions, setup-php bumped 2.37.0 to 2.37.2.
  • New Checks / Workflows job runs zizmor over .github (config in .github/zizmor.yml).
  • split.yml / split-dev.yml request only contents: write and workflows: write; the split app must allow both or token creation fails on the first main push after merge.

Remaining steps:

  1. After merge, confirm the first main push passes the split workflows and that CodeQL runs on PRs.
  2. Separately fix specs.yml, which pushes to appwrite/specs with GITHUB_TOKEN and cannot write to another repository (already true before this PR).
  3. Later steps of the CI cleanup beyond this PR.

Done when:

Activity

  1. self-assigned this
    on Oct 9, 2026
  2. added
    product / auth
    product / databases
    product / functions
    product / messaging
    product / storage
    product / vcs
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / authproduct / databasesproduct / functionsproduct / messagingproduct / storageproduct / vcs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions