Skip to content

Slack Notifications #742

Slack Notifications

Slack Notifications #742

name: Slack Notifications
on:
schedule:
- cron: '0 10 * * *'
jobs:
gem_notifications:
runs-on: ubuntu-22.04
steps:
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
with:
ruby-version: 3.3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- run: gem install httparty
- name: Check for outdated gems
run: ruby .github/workflows/scripts/slack_notifications/gem_notifier.rb ${{ env.gems }}
env:
SLACK_GEM_NOTIFICATIONS_WEBHOOK: ${{ secrets.SLACK_GEM_NOTIFICATIONS_WEBHOOK }}
gems:
"activerecord
bunny
dalli
delayed_job
elasticsearch
excon
grape
http
httpclient
mongo
puma
rack
rails
rake
rdkafka
redis
resque
roda
ruby-openai
sidekiq
sinatra
stripe
tilt
unicorn
view_component"
cve_notifications:
runs-on: ubuntu-22.04
steps:
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
with:
ruby-version: 3.3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- run: gem install httparty
- run: gem install feedjira
- name: Check for CVEs
run: ruby .github/workflows/scripts/slack_notifications/cve_notifier.rb
env:
SLACK_GEM_NOTIFICATIONS_WEBHOOK: ${{ secrets.SLACK_GEM_NOTIFICATIONS_WEBHOOK }}