Skip to content

Comments

add pull-requests: read permission to verify-dockerfile workflow#234

Merged
kernelsam merged 1 commit intomainfrom
add-pull-requests-read-permission
Feb 18, 2026
Merged

add pull-requests: read permission to verify-dockerfile workflow#234
kernelsam merged 1 commit intomainfrom
add-pull-requests-read-permission

Conversation

@kernelsam
Copy link
Contributor

The verify-dockerfile-refreshed-at-updated reusable workflow needs pull-requests: read to function correctly with the callers permissions.

The verify-dockerfile-refreshed-at-updated reusable workflow needs
pull-requests: read to function correctly with the callers permissions.
@kernelsam kernelsam requested a review from a team as a code owner February 18, 2026 18:48
@kernelsam kernelsam requested a review from docktermj February 18, 2026 18:48
@kernelsam kernelsam enabled auto-merge (squash) February 18, 2026 18:48
@github-actions
Copy link
Contributor

🤖 Claude Code Review


PR Code Review: Add verify-dockerfile-refreshed-at-updated.yaml Workflow

Code Quality

✅ No commented-out code — The file is clean.

✅ Meaningful variable/name usage — Job and workflow names are descriptive.

⚠️ Potential duplication (DRY): This repo already has .github/workflows/docker-verify-refreshed-at-updated.yaml (line 21) which calls the same reusable workflow (senzing-factory/build-resources/.github/workflows/verify-dockerfile-refreshed-at-updated.yaml@v4). The new file .github/workflows/verify-dockerfile-refreshed-at-updated.yaml is functionally very similar. The key differences are:

Existing (docker-verify-refreshed-at-updated.yaml) New (verify-dockerfile-refreshed-at-updated.yaml)
name Docker verify REFRESHED_AT Updated Verify Dockerfile REFRESHED_AT Updated
on.pull_request.branches [main] (all branches)
concurrency Present Missing
pull-requests: read permission Missing Present
Explanatory comment Present Missing

❌ Missing concurrency block (.github/workflows/verify-dockerfile-refreshed-at-updated.yaml, line 1-14): The existing workflow uses a concurrency group to cancel in-progress runs. The new workflow omits this, which can lead to redundant parallel runs consuming GitHub Actions minutes unnecessarily.

❌ Missing branch filter on pull_request (line 4): The existing workflow restricts to branches: [main], but the new one triggers on PRs to any branch. This may be intentional (to support the pull-requests: read permission needed to inspect the PR diff across branches), but it should be confirmed. If the intent is to replace the existing workflow, the branch scoping is inconsistent.

⚠️ Possible duplicate/conflicting workflows: Two workflows with the same job name (Verify Dockerfiles REFRESHED_AT Updated) calling the same reusable workflow may produce duplicate required status checks. Clarify whether the old docker-verify-refreshed-at-updated.yaml is being replaced or if both are intended to coexist.

✅ Style guide — Unable to fetch the external style guide URL, but the YAML structure follows the patterns used in this repository's other workflow files.


Testing

N/A — This is a CI workflow file. No unit/integration tests apply.


Documentation

✅ No README or API docs changes required for a CI workflow addition.

⚠️ No CHANGELOG.md update — Not visible in the diff. If this project maintains a changelog, a CI workflow addition may warrant an entry.

✅ No complex inline logic requiring comments, though the existing docker-verify-refreshed-at-updated.yaml includes a useful comment on line 3-4 explaining the required status check naming. The new workflow omits this context.


Security

permissions: {} at the workflow level with explicit least-privilege grants at the job level — correct security posture.

✅ No hardcoded credentials, sensitive data, or license files.

✅ Uses a pinned major version tag (@v4) on the reusable workflow reference — consistent with repository conventions.


Summary of Issues

Severity Issue
❌ Medium Missing concurrency block — can cause redundant parallel runs
❌ Medium Potential duplicate with docker-verify-refreshed-at-updated.yaml — clarify if old workflow should be removed
⚠️ Low Missing explanatory comment about required status check naming (present in the existing counterpart)
⚠️ Low No branch filter on pull_request trigger — confirm this is intentional

Automated code review analyzing defects and coding standards

@github-actions
Copy link
Contributor

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@docktermj docktermj self-assigned this Feb 18, 2026
@kernelsam kernelsam merged commit 205b990 into main Feb 18, 2026
47 checks passed
@kernelsam kernelsam deleted the add-pull-requests-read-permission branch February 18, 2026 18:58
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