mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
remove perms and ignore dependabot prs for cargo audit check (#84)
It's meant to only run on commits on master but just to be safe
This commit is contained in:
parent
7cb0696f3f
commit
57e4054cbe
1 changed files with 3 additions and 2 deletions
5
.github/workflows/cargo-audit.yml
vendored
5
.github/workflows/cargo-audit.yml
vendored
|
|
@ -6,13 +6,14 @@ on:
|
||||||
- "**/Cargo.lock"
|
- "**/Cargo.lock"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 14 * * *" # 14:00 UTC
|
- cron: "0 14 * * *" # 14:00 UTC
|
||||||
permissions:
|
|
||||||
repository-projects: read
|
|
||||||
jobs:
|
jobs:
|
||||||
cargo-audit:
|
cargo-audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/audit-check@v1
|
- uses: actions-rs/audit-check@v1
|
||||||
|
# Don't run on dependabot PRs or forks
|
||||||
|
# https://github.com/actions-rs/clippy-check/issues/2#issuecomment-807852653
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue