PHPMailer/.github
jrfnl c8fdd4178e
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.

This was already addressed for the other two workflows, just not for the `tests` one.

As far as I can see, the jobs here do not need the `GITHUB_TOKEN` secret and even if they do, only for `content: read`, which for public repos does not need to be set explicitly, though it doesn't do any harm to have that set anyway.

Refs:
* https://docs.zizmor.sh/audits/#excessive-permissions
2025-09-21 16:39:02 +02:00
..
ISSUE_TEMPLATE Update Stack Overflow link 2022-11-08 08:48:31 +01:00
actions/build-docs Remove chmod - wrong path 2019-10-03 13:29:13 +02:00
workflows GH Actions: set permissions for each workflow/job 2025-09-21 16:39:02 +02:00
FUNDING.yml Tidelift funding 2021-03-22 17:59:04 +01:00
dependabot.yml Dependabot: update config 2025-09-20 05:10:40 +02:00