Add zulip alert for CVE scan #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test zulip | |
on: | |
push: | |
branches: [zulip-alert] | |
jobs: | |
test-zulip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Job URL | |
id: job-url | |
run: | | |
echo url=$(gh run view ${GITHUB_RUN_ID} --repo ${GITHUB_REPO} --json jobs \ | |
--jq ".jobs[] | select(.name == \"${GITHUB_JOB}\") | .url") >> GITHUB_OUTPUT | |
env: | |
GITHUB_JOB: ${{ github.job }} | |
GITHUB_RUN_ID: ${{ github.run_id }} | |
GITHUB_REPO: ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 | |
with: | |
email: ${{ secrets.ZULIP_EMAIL }} | |
api-key: ${{ secrets.ZULIP_API_KEY }} | |
organization-url: ${{ secrets.ZULIP_ORGANIZATION_URL }} | |
type: stream | |
to: test-bots | |
topic: test-topic | |
content: 'Flux Enterprise ${{ github.job }} CVE alert: ${{ steps.job-url.outputs.url }}' |