Skip to content

update push to slack to use uploadsV2 (#480)#481

Merged
DinetsV merged 1 commit intodevelopfrom
master
Jan 14, 2026
Merged

update push to slack to use uploadsV2 (#480)#481
DinetsV merged 1 commit intodevelopfrom
master

Conversation

@DinetsV
Copy link
Copy Markdown
Contributor

@DinetsV DinetsV commented Jan 14, 2026

✨ PR Description

Purpose: Update Slack integration to use official slackapi/slack-github-action with files.uploadV2 API instead of curl-based file uploads for improved reliability and maintainability.
Main changes:

  • Replaced curl-based files.upload API calls with official slack-github-action@v2.1.1 using files.uploadV2 method
  • Consolidated authentication by leveraging action's built-in token handling for both PR merge and manual trigger workflows
  • Standardized payload structure with channel_id, title, initial_comment, and file parameters across both notification triggers

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@DinetsV DinetsV merged commit cb2b256 into develop Jan 14, 2026
8 of 51 checks passed
if: ${{ github.event.pull_request.merged == true }}
run: |
curl -F file=@pojo-accessibility.zip -F "initial_comment=Ally - A new PR has been pushed to the master branch by ${{ github.actor }}." title="${{ github.event.pull_request.title }}" -F channels=C07LFCFNGDB -H "Authorization: Bearer ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}" https://slack.com/api/files.upload
uses: slackapi/slack-github-action@v2.1.1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step
uses 'slackapi/slack-github-action' with ref 'v2.1.1', not a pinned commit hash
if: ${{ github.event.inputs.push_to_slack == 'true' }}
run: |
curl -F file=@pojo-accessibility.zip -F "initial_comment=Ally - A new build was triggered by ${{ github.actor }}." title="Manuall ${{ steps.date.outputs.date }}" -F channels=C07LFCFNGDB -H "Authorization: Bearer ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}" https://slack.com/api/files.upload
uses: slackapi/slack-github-action@v2.1.1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step
uses 'slackapi/slack-github-action' with ref 'v2.1.1', not a pinned commit hash
@wiz-9a149474ff
Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 2 Low
SAST Finding SAST Findings -
Software Supply Chain Finding Software Supply Chain Findings -
Total 2 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants