Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughMultiple GitHub Actions workflows were updated to newer action versions, a typo in a Slack permission string was fixed, a new workflow was added to reference GitHub comments in commit messages, and the setup composite action now detects package manager and conditionally runs install/prepare and optional provenance checks. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Workflow as GitHub Workflow
participant Setup as setup/action.yaml
participant Repo as Repository
participant Yarn as Yarn CLI
participant NPM as npm CLI
participant Verify as Provenance Verifier
Workflow->>Setup: invoke composite action
Setup->>Repo: inspect for yarn.lock / package-lock.json
alt yarn.lock present
Setup->>Setup: set output package-manager = "yarn"
Setup->>Yarn: yarn install --immutable
Note right of Yarn: postinstall handles prepare
else package-lock.json present
Setup->>Setup: set output package-manager = "npm"
Setup->>NPM: npm ci
opt cache miss
Setup->>Verify: verify provenance & registry signatures
end
Setup->>NPM: npm run prepare (if defined)
else no lockfile
Setup->>Workflow: fail step with error
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (6)
.github/workflows/ci.yaml(1 hunks).github/workflows/notify-main-branch-failure.yaml(1 hunks).github/workflows/ref-comment-in-commit.yaml(1 hunks).github/workflows/reusable-release.yml(2 hunks).github/workflows/reusable-tag-docker-release-images.yml(2 hunks)setup/action.yaml(3 hunks)
Why?
Closes https://verkstedt.atlassian.net/browse/VIP-86
Groundwork for #25 and #26 (not yet ready for review).
What?
What else?
Typo in an error message
Use ref-comment-in-commit action in this repository
feat(ci): Run npm audit signatures. https://github.blog/changelog/2022-07-26-a-new-npm-audit-signatures-command-to-verify-npm-package-integrity/
feat(ci): Output package-manager in
setupaction, introducing source of truth for this info, instead of checking foryarn.lockfile