Upgrade slackapi/slack-github-action from v1 to v3
Dependabot opened PR #782 to bump slackapi/slack-github-action from v1 to v3, but this is a major version upgrade with breaking changes that requires configuration updates beyond just the version pin.
Breaking changes to address
The v1 → v3 upgrade requires updating the Slack notification step in .github/workflows/nightly-agent-integration.yml:
- Authentication: v1 used the
SLACK_BOT_TOKEN environment variable. v2+ requires a token input parameter instead.
- Method input: v2+ requires a
method input (e.g., method: chat.postMessage).
- Channel specification: The
channel should be specified in the payload body rather than via the channel-id input (verify v3 docs for exact behavior).
- Remove deprecated env var: The
SLACK_BOT_TOKEN env var is no longer read by v2+.
- Node.js 24 runtime: v3 requires Node.js 24 on the GitHub Actions runner. Verify runner compatibility.
Expected updated configuration
- name: Notify Slack
uses: slackapi/slack-github-action@v3
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
"text": ":red_circle: Nightly agent integration tests FAILED",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Nightly Agent CLI Integration* failed on `${{ github.ref_name }}`\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"
}
}
]
}
References
Upgrade
slackapi/slack-github-actionfrom v1 to v3Dependabot opened PR #782 to bump
slackapi/slack-github-actionfrom v1 to v3, but this is a major version upgrade with breaking changes that requires configuration updates beyond just the version pin.Breaking changes to address
The v1 → v3 upgrade requires updating the Slack notification step in
.github/workflows/nightly-agent-integration.yml:SLACK_BOT_TOKENenvironment variable. v2+ requires atokeninput parameter instead.methodinput (e.g.,method: chat.postMessage).channelshould be specified in the payload body rather than via thechannel-idinput (verify v3 docs for exact behavior).SLACK_BOT_TOKENenv var is no longer read by v2+.Expected updated configuration
References