Skip to content

Tighten GitHub Actions checkout usage - #588

Open
SRombauts wants to merge 2 commits into
masterfrom
ci/checkout-submodules-permissions
Open

SRombauts wants to merge 2 commits into
masterfrom
ci/checkout-submodules-permissions

Conversation

@SRombauts

Copy link
Copy Markdown
Owner

Simplify checkout of the googletest submodule and reduce the default permissions granted to GitHub Actions workflows.

  • let actions/checkout fetch submodules for jobs that build the tests
  • skip submodule initialization in jobs that do not need googletest
  • set contents: read on the remaining workflows, while preserving CodeQL's security-events: write permission

Let actions/checkout fetch googletest only in jobs that build the
tests, and avoid unnecessary submodule initialization elsewhere.
Give ordinary CI workflows read-only repository access by default.
CodeQL keeps its explicit security-events write permission.
@coveralls

coveralls commented Sep 24, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 99.714%. remained the same — ci/checkout-submodules-permissions into master

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.

2 participants