Skip to content

Add dependency bump review workflow#84

Merged
dvasilas merged 1 commit intomainfrom
feat/add-dependency-review-workflow
Mar 20, 2026
Merged

Add dependency bump review workflow#84
dvasilas merged 1 commit intomainfrom
feat/add-dependency-review-workflow

Conversation

@dvasilas
Copy link
Contributor

@dvasilas dvasilas commented Mar 17, 2026

Add claude-code-dependency-review.yml, a reusable workflow that runs the /review-dependency-bump skill to evaluate dependency bump PRs. See https://github.com/scality/agent-hub/pull/18

@dvasilas dvasilas requested a review from a team as a code owner March 17, 2026 09:29
@dvasilas dvasilas force-pushed the feat/add-dependency-review-workflow branch from 4613362 to a3b5ced Compare March 17, 2026 09:37
@dvasilas dvasilas force-pushed the feat/add-dependency-review-workflow branch from c801785 to b431ecc Compare March 19, 2026 09:38
- uses: actions/checkout@v6
with:
fetch-depth: 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should perform yarn install after checkout (if there is a yarn.lock), to allow analyzing the node_modules folder (as discussed in the PR in agent-hub)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added 702b6eb.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed, now that we install the plugin from agent-hub

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed and squashed commits.

@dvasilas dvasilas force-pushed the feat/add-dependency-review-workflow branch from b53b5f2 to 08e49d9 Compare March 19, 2026 13:56
@dvasilas dvasilas requested a review from nicolas2bert March 19, 2026 13:57
Copy link

@francoisferrand francoisferrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets me thinking: could we use the same approach to "factorize" the (generic) code review workflow, instead of duplicating everywhere?

(that one may require some extra prompt to allow injecting additional review instructions from the repo, though)


- name: Install dependencies
if: hashFiles('yarn.lock') != ''
run: yarn install --frozen-lockfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just thinking now this may fail if auth is required to pull modules... should we add an extra GITHUB_TOKEN parameter, possibly set to github_token by default?

not sure how to get around this - and probably ok if we don't for a first version ; but maybe we should just have a continue-on-failure here and post GitHub warning if that happens?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added continue-on-failure and writing a warning if this step fails.

@dvasilas
Copy link
Contributor Author

this gets me thinking: could we use the same approach to "factorize" the (generic) code review workflow, instead of duplicating everywhere?

(that one may require some extra prompt to allow injecting additional review instructions from the repo, though)

Yes, why not, it would remove some friction for adoption.
Personally I prefer to also have the skill available locally to run it on PRs review, continue the discussion after a review etc.

Adds claude-code-dependency-review.yml, a reusable workflow that runs
the /review-dependency-bump skill to evaluate dependabot PRs.

The workflow loads the /review-dependency-bump skill from scality/agent-hub
instead of requiring it locally in each downstream repo.

The workflow also includes a conditional step to run yarn install before
dependency review, allowing analysis of node_modules contents.
@dvasilas dvasilas force-pushed the feat/add-dependency-review-workflow branch from ec84670 to 1ead741 Compare March 20, 2026 07:23
@dvasilas dvasilas merged commit 88465fc into main Mar 20, 2026
7 of 8 checks passed
@dvasilas dvasilas deleted the feat/add-dependency-review-workflow branch March 20, 2026 07:23
plugins: scality-skills@scality-agent-hub
prompt: "/review-dependency-bump REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}"
claude_args: |
--allowedTools "Read" "Grep" "WebFetch" "Bash(gh repo view *)" "Bash(gh pr view *)" "Bash(gh pr comment *)" "Bash(gh pr review *)" "Bash(gh api *)"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Bash(gh pr review *) permission allows the Claude agent to approve or request changes on PRs. For dependency bumps from Dependabot, this means Claude could auto-approve PRs without human review. Consider whether this is intentional — if the goal is only to comment with analysis, removing this permission would be safer.

— Claude Code

@@ -0,0 +1,64 @@
name: Claude Code Dependency Review
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No corresponding documentation page was added for this new workflow. The project convention is to update docs/ and mkdocs.yml when adding or modifying workflows.

— Claude Code

GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.ANTHROPIC_VERTEX_PROJECT_ID }}
CLOUD_ML_REGION: ${{ secrets.CLOUD_ML_REGION }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing trailing newline at end of file.

— Claude Code

@claude
Copy link

claude bot commented Mar 20, 2026

Review summary: (1) gh-pr-review permission allows agent to approve/reject PRs - consider removing if only commenting is intended. (2) No docs added for new workflow - add page in docs/ and update mkdocs.yml. (3) Missing trailing newline in review.yml. -- Review by Claude Code

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.

4 participants