Skip to content

Update test.yml

Update test.yml #11

Workflow file for this run

name: Sec Badges
on: [pull_request, push]
jobs:
dependabot-alerts:
runs-on: ubuntu-latest
outputs:
count: ${{ steps.alerts.outputs.total_alerts }}
steps:
- name: Check Dependabot Alerts
id: alerts
uses: spicyparrot/[email protected]
with:
github_personal_token: ${{ secrets.DEPEND_SECRET }}
dependabot-badge:
needs: dependabot-alerts
env:
COUNT: ${{ needs.dependabot-alerts.outputs.count }}
runs-on: ubuntu-latest
steps:
- name: Create the Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.DEPEND_SECRET }}
gistID: 27228b9af08e477a7edff3e34f829454
filename: ${{ github.event.repository.name }}.json
label: Dependabot Alerts
message: ${{env.COUNT}}
valColorRange: ${{env.COUNT}}
maxColorRange: 0
minColorRange: 100
cacheSeconds: 300