fix(slack): remove username and icon overrides to use app identity#179
fix(slack): remove username and icon overrides to use app identity#179
Conversation
WalkthroughWorkflow and composite action now write outputs using quoted "$GITHUB_OUTPUT" and grouped redirections; status and message construction use step-local shell variables and GitHub context values; Slack notify action is pinned to a commit SHA and Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🛡️ CodeQL Analysis ResultsLanguages analyzed: ✅ No security issues found. 🔍 View full scan logs | 🛡️ Security tab |
🔍 Lint Analysis
|
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/slack-notify.yml (1)
62-62:⚠️ Potential issue | 🟡 MinorFix trailing spaces — pipeline is failing.
Yamllint reports trailing-spaces errors on lines 62, 85, 106, 115, 118, 124, 127, 130, 135, and 138. These are blocking errors.
#!/bin/bash # Verify trailing spaces in the file grep -n ' $' .github/workflows/slack-notify.yml | head -20Also applies to: 85-85, 106-106, 115-115, 118-118, 124-124, 127-127, 130-130, 135-135, 138-138
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/slack-notify.yml at line 62, The YAML file .github/workflows/slack-notify.yml contains trailing spaces on multiple lines (reported at lines 62, 85, 106, 115, 118, 124, 127, 130, 135, 138) which breaks yamllint; open that workflow file and remove any trailing whitespace characters at the ends of those lines (and run a full trim of trailing spaces across the file or run `sed -i 's/[ \t]\+$//'` locally) so the file has no trailing spaces and the pipeline passes validation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/slack-notify.yml:
- Line 147: The inline comment on the GitHub Actions step using "uses:
rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661" needs two
spaces before the "#" to satisfy yamllint; edit the line containing that uses
entry so there are exactly two spaces between the tag and the inline comment
marker (the "# v2" comment).
In `@src/notify/slack-notify/action.yml`:
- Line 124: The YAML line using the action identifier "uses:
rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661" has an
inline comment with insufficient spacing; update that line so there are exactly
two spaces before the inline comment (i.e., ensure "uses:
rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661" is followed
by two spaces, then the "#" and comment text) to satisfy yamllint's "too few
spaces before comment" rule.
---
Outside diff comments:
In @.github/workflows/slack-notify.yml:
- Line 62: The YAML file .github/workflows/slack-notify.yml contains trailing
spaces on multiple lines (reported at lines 62, 85, 106, 115, 118, 124, 127,
130, 135, 138) which breaks yamllint; open that workflow file and remove any
trailing whitespace characters at the ends of those lines (and run a full trim
of trailing spaces across the file or run `sed -i 's/[ \t]\+$//'` locally) so
the file has no trailing spaces and the pipeline passes validation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 5f169880-a07e-462e-a817-959681a8a46a
📒 Files selected for processing (2)
.github/workflows/slack-notify.ymlsrc/notify/slack-notify/action.yml
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.github/workflows/slack-notify.yml (1)
150-150:⚠️ Potential issue | 🟡 Minoryamllint spacing: 2 spaces required before inline comment.
Same issue flagged previously — needs 2 spaces between the SHA and
#.Proposed fix
- uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2 + uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/slack-notify.yml at line 150, The YAML line using the Slack action has only one space before the inline comment; update the line containing "uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2" to ensure there are exactly two spaces before the "#" (i.e., "...90661 # v2") so it conforms to yamllint spacing rules; edit that single occurrence in .github/workflows/slack-notify.yml and save the file.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In @.github/workflows/slack-notify.yml:
- Line 150: The YAML line using the Slack action has only one space before the
inline comment; update the line containing "uses:
rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2" to
ensure there are exactly two spaces before the "#" (i.e., "...90661 # v2") so
it conforms to yamllint spacing rules; edit that single occurrence in
.github/workflows/slack-notify.yml and save the file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: ASSERTIVE
Plan: Pro
Run ID: c0c8a035-6926-4a2f-a40c-e2dce84b74c3
📒 Files selected for processing (1)
.github/workflows/slack-notify.yml
Description
Remove hardcoded
SLACK_USERNAMEandSLACK_ICONenv vars from the Slack notification workflow and composite action. This allows messages to use the name and avatar configured in the Lerian Notifications Slack app instead of showing "GitHub Actions" with the GitHub logo.Affected files:
.github/workflows/slack-notify.ymlsrc/notify/slack-notify/action.ymlType of Change
feat: New workflow or new input/output/step in an existing workflowfix: Bug fix in a workflow (incorrect behavior, broken step, wrong condition)perf: Performance improvement (e.g. caching, parallelism, reduced steps)refactor: Internal restructuring with no behavior changedocs: Documentation only (README, docs/, inline comments)ci: Changes to self-CI (workflows under.github/workflows/that run on this repo)chore: Dependency bumps, config updates, maintenancetest: Adding or updating testsBREAKING CHANGE: Callers must update their configuration after this PRBreaking Changes
None. The Slack app identity is already configured — removing the overrides simply stops masking it.
Testing
@developor the beta tagCaller repo / workflow run:
Related Issues
Closes #
Summary by CodeRabbit