• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sirbrillig / phpcs-variable-analysis / 32164578528
94%
2.x: 94%

Build:
Build:
LAST BUILD BRANCH: feature/ghactions-set-minimal-permissions
DEFAULT BRANCH: 2.x
Ran 18 Aug 2026 05:16PM UTC
Jobs 4
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Aug 2026 05:14PM UTC coverage: 94.489%. Remained the same
32164578528

push

github

jrfnl
GH Actions: set permissions for each workflow/job

> Users frequently over-scope their workflow and job permissions, or set broad workflow-level permissions without realizing that all jobs inherit those permissions.
>
> Furthermore, users often don't realize that the _default_ `GITHUB_TOKEN` permissions can be very broad, meaning that workflows that don't configure any permissions at all can _still_ provide excessive credentials to their individual jobs.
>
> **Remediation**
> In general, permissions should be declared as minimally as possible, and as close to their usage site as possible.
>
> In practice, this means that workflows should almost always set `permissions: {}` at the workflow level to disable all permissions by default, and then set specific job-level permissions as needed.

Refs:
* https://docs.zizmor.sh/audits/#excessive-permissions

**Notes**:
* Includes a few minor tweaks for consistency in the instructions order.
* The permissions added are based on an best effort to discover the ones needed. Some tweaking may still be needed.

1749 of 1851 relevant lines covered (94.49%)

138.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.4-phpcs-3.13.6 - 32164578528.1 18 Aug 2026 05:16PM UTC 9
93.8
GitHub Action Run
2 php-5.4-phpcs-3.13.6 - 32164578528.2 18 Aug 2026 05:17PM UTC 9
93.5
GitHub Action Run
3 php-8.5-phpcs-4.x-dev - 32164578528.3 18 Aug 2026 05:16PM UTC 9
93.98
GitHub Action Run
4 php-7.2-phpcs-4.x-dev - 32164578528.4 18 Aug 2026 05:16PM UTC 9
92.83
GitHub Action Run
Source Files on build 32164578528
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32164578528
  • f65813d4 on github
  • Prev Build on trunk (#32146246472)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc