forked from aws/s2n-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add a cargo audit action (aws#4862)
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: dependencies | ||
|
||
on: | ||
# Because of permissions issues with forked PRs, | ||
# Only run on a schedule or pushes to main. | ||
push: | ||
branches: | ||
- main | ||
# Only run if these files were touched. | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
- ".github/workflows/dependencies.yml" | ||
|
||
schedule: | ||
# Run every day at 1800 UTC. | ||
- cron: "0 18 * * *" | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write # Open/update issues. | ||
checks: write # Create/update a check run. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rustsec/audit-check@v2.0.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |