Skip to content

⚙️ [Maintenance]: GitHub Actions checkouts use least-privilege settings - #412

Merged
Marius Storhaug (MariusStorhaug) merged 9 commits into
mainfrom
dependabot/github_actions/github-actions-7a5a078ad4
Aug 8, 2026
Merged

⚙️ [Maintenance]: GitHub Actions checkouts use least-privilege settings#412
Marius Storhaug (MariusStorhaug) merged 9 commits into
mainfrom
dependabot/github_actions/github-actions-7a5a078ad4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 24, 2026

Copy link
Copy Markdown
Contributor

GitHub Actions workflows now use the pinned actions/checkout v7.0.1 release consistently, avoid unnecessary full-history downloads, and prevent checkout credentials from persisting in the workspace. Generated documentation is linted with Super-Linter using filesystem discovery restricted to Markdown files.

Changed: Workflow checkout security and efficiency

All checkout steps disable credential persistence because these workflows do not rely on the checkout repository for authenticated Git operations. Super-Linter uses filesystem discovery instead of Git, so full-history fetching is not required.

Changed: Generated documentation lint scope

The documentation build runs Super-Linter in local mode with filesystem discovery and limits the include pattern to generated .md and .markdown files. The default branch is not configured, avoiding Git branch comparison and keeping the lint focused on the documentation output.


Technical details
  • Updated all workflow references to the pinned actions/checkout v7.0.1 commit 3d3c42e5aac5ba805825da76410c181273ba90b1.
  • Applied persist-credentials: false to all 28 checkout steps.
  • Configured USE_FIND_ALGORITHM: true for the Super-Linter invocations in Linter.yml, Lint-Repository.yml, and Build-Docs.yml.
  • Removed DEFAULT_BRANCH from the local documentation Super-Linter invocation.
  • Restricted Build-Docs.yml documentation linting to outputs/docs Markdown files with FILTER_REGEX_INCLUDE.
  • Removed all fetch-depth: 0 settings; checkout now uses the action's shallow fetch default.
  • Updated the previously missed .github/workflows/Test-Actions.yml reference.
  • Standards and framework alignment:
Changed surface Standards checked Framework docs checked Result
.github/workflows/** GitHub Actions, least privilege, dependency pinning Reusable workflow contract Aligned
Relevant issues (or links)
  • No linked issue; this is a Dependabot dependency maintenance update.

Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code Patch labels Jul 24, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 24, 2026 11:14
@dependabot dependabot Bot added Patch dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Remove unnecessary full-history fetches, keep credential persistence disabled for every checkout, and update the remaining checkout reference to v7.0.1.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Bump actions/checkout from 7.0.0 to 7.0.1 in the github-actions group ⚙️ [Maintenance]: GitHub Actions checkouts use least-privilege settings Aug 8, 2026
Super-Linter needs the main branch reference for repository comparisons; retain shallow checkouts elsewhere.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Configure Super-Linter to find files without Git history and keep shallow checkouts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the broad Super-Linter invocation with markdownlint-cli2 for the generated Markdown output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use filesystem discovery without a default branch and limit documentation linting to Markdown files.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit 294e7b7 into main Aug 8, 2026
57 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the dependabot/github_actions/github-actions-7a5a078ad4 branch August 8, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code Patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant