Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,26 @@

- name: Push to Slack on PR merge
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
with:
method: files.uploadV2
token: ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}
payload: |
channel_id: "C07LFCFNGDB"
title: "${{ github.event.pull_request.title }}"
initial_comment: "Ally - A new PR has been pushed to the master branch by ${{ github.actor }}."
file: "pojo-accessibility.zip"
filename: "pojo-accessibility.zip""

- name: Push to Slack on Manual Trigger
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
with:
method: files.uploadV2
token: ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}
payload: |
channel_id: "C07LFCFNGDB"
title: "Manuall ${{ github.event.pull_request.title }}"
initial_comment: "Ally - A new build was triggered by ${{ github.actor }}."
file: "pojo-accessibility.zip"
filename: "pojo-accessibility.zip"
Loading