Files
ocis/.github
7d9b63b856 ci: add zizmor workflow audit (#13232)
* ci: add zizmor workflow audit

Runs zizmor over this repository's workflows and Dependabot config on
every pull request, on pushes to the default branch and weekly, through
owncloud/reusable-workflows' zizmor.yml. Any finding fails the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

* fix(ci): resolve zizmor findings

- excessive-permissions: workflows without a permissions block ran
  with the repository default, which is read/write. They now default
  to contents: read; only create-github-release gets contents: write,
  for softprops/action-gh-release. audit-release only GETs the
  published release, which read covers.
- cache-poisoning: the release workflow's setup-node steps opt out of
  package-manager caching, so a tag build cannot restore a cache that a
  branch build wrote.
- artipacked: checkouts do not persist credentials. No job runs a git
  operation after checkout.
- dependabot-cooldown: every ecosystem waits 7 days, as github-actions
  already does.
- ref-version-mismatch: setup-php's tag is 2.40.0, without the v.
- self-repository: local reusable workflows and actions are called as
  $/... instead of ./... .
- Suppressed inline, with the reason on the line: the unpinned
  `npm install -g yarn npx` in the release workflow (pre-existing, left
  to the maintainers), the version-pinned gherlint install, and the
  softprops release step, which CI cannot exercise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

* fix(ci): undo two zizmor auto-fix slips, keep scheduled runs

- zizmor's template-injection auto-fix read `${{ }}` inside a shell
  comment in determine-release-type as an expansion: it added an env
  entry reading that job's own output, which is always empty, and
  rewrote the comment to describe something no longer true. The entry
  is gone and the comment describes the env indirection the later jobs
  now use, with the version check as a second safeguard.
- Only pull request runs of the zizmor audit cancel each other now; a
  push to master and the weekly run share a ref.

The previous commit's message is incomplete: it lists a self-repository
change this repository did not need, and omits the auto-fixed
template-injection findings (expressions in run: moved to env: in
release.yml, release-npm-packages.yml and acceptance-tests.yml) and the
cache-poisoning fix also turning off setup-go's cache in the release
jobs, so a tag build cannot restore a cache a branch build wrote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

---------

Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:55:39 +01:00
..
2022-02-04 20:44:42 +01:00
2026-05-13 12:14:45 +02:00
2022-07-07 10:00:34 +02:00