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

@dependabotdependabotBot commented on behalf of githubJul 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 surfaceStandards checkedFramework docs checkedResult
.github/workflows/**GitHub Actions, least privilege, dependency pinningReusable workflow contractAligned
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>
@dependabotdependabotBot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code Patch labels Jul 24, 2026
@dependabot
dependabotBot requested a review from a team as a code ownerJuly 24, 2026 11:14
@dependabotdependabotBot 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-actionsBot commented Jul 24, 2026

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

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>
@MariusStorhaugMarius 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 settingsAug 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 mainAug 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency filegithub_actionsPull requests that update GitHub Actions codePatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@MariusStorhaug