forked from rustsec/advisory-db
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github action to assign RUSTSEC ids (rustsec#311)
* Create github action to assign RUSTSEC ids * Bump
- Loading branch information
Showing
1 changed file
with
34 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,34 @@ | ||
name: Assign IDs | ||
|
||
on: | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
assign-ids: | ||
name: Assign IDs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Cache cargo bin | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/bin | ||
key: rustsec-admin-v0.2.0 | ||
|
||
- name: Install rustsec-admin | ||
run: | | ||
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then | ||
cargo install rustsec-admin | ||
fi | ||
- name: Assign IDs | ||
run: rustsec-admin assign-id | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Assign RUSTSEC IDs | ||
title: Assign RUSTSEC IDs | ||
branch: assign-ids | ||
|