Skip to content

Potential fix for code scanning alerts: Workflow does not contain permissions - #4397

Open
jeffpaul wants to merge 9 commits into
developfrom
fix/workflows
Open

jeffpaul wants to merge 9 commits into
developfrom
fix/workflows

Conversation

@jeffpaul

@jeffpaul jeffpaul commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

This pull request updates several GitHub Actions workflow files to explicitly set the permissions field, improving the security and clarity of CI/CD workflows. The changes ensure that each workflow has only the required level of access to repository contents, with most workflows set to contents: read and workflows that perform releases or documentation builds set to contents: write.

Security and permissions updates:

  • Added permissions: contents: read to the following workflows to restrict them to read-only access: build-and-tag.yml, build-with-vendor-prefixed.yml, lint.yml, push-asset-readme-update.yml, push-deploy.yml, secrets-scan.yml, test.yml, and wordpress-latest.yml. [1] [2] [3] [4] [5] [6] [7] [8]

  • Set permissions: contents: write for jobs that require write access, such as the Release job in build-and-tag.yml and the build-docs.yml workflow, to allow them to push changes or create tags/releases. [1] [2]

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@jeffpaul jeffpaul self-assigned this Oct 26, 2026
@jeffpaul jeffpaul added this to the 5.4.0 milestone Oct 26, 2026
jeffpaul and others added 8 commits October 26, 2026 12:40
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@jeffpaul jeffpaul changed the title Potential fix for code scanning alert no. 11: Workflow does not contain permissions Potential fix for code scanning alerts: Workflow does not contain permissions Oct 26, 2026
@jeffpaul
jeffpaul marked this pull request as ready for review October 26, 2026 17:45
@jeffpaul
jeffpaul requested a review from felipeelia October 26, 2026 17:45

This branch has not been deployed

No deployments
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.

1 participant