-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 964 Bytes
/
security.yml
File metadata and controls
29 lines (29 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Security
on:
schedule:
# Mondays 14:00 UTC. Weekly cadence — real advisory churn, not per-push theater.
- cron: "0 14 * * 1"
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
id: deny
with:
command: check advisories licenses bans sources
arguments: --workspace --all-features
- name: open regression issue
if: failure()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
gh issue create \
--title "cargo-deny regression ($(date -u +%Y-%m-%d))" \
--label security,automation \
--body "Weekly cargo-deny found a new advisory/license/ban/source issue. Run: $RUN_URL"