From 935c82bfca447b88b217558c35451e4aadf88a87 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 21 Jun 2020 11:14:49 -0400 Subject: [PATCH 1/2] Create github action to assign RUSTSEC ids --- .github/workflows/assign-ids.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/assign-ids.yml diff --git a/.github/workflows/assign-ids.yml b/.github/workflows/assign-ids.yml new file mode 100644 index 000000000..3247ce036 --- /dev/null +++ b/.github/workflows/assign-ids.yml @@ -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.1.1 + + - 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 + From d7e80956bdc966ad365a89b1a838dfab3a58688c Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 29 Jun 2020 14:32:42 -0400 Subject: [PATCH 2/2] Bump --- .github/workflows/assign-ids.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assign-ids.yml b/.github/workflows/assign-ids.yml index 3247ce036..75c04e452 100644 --- a/.github/workflows/assign-ids.yml +++ b/.github/workflows/assign-ids.yml @@ -15,7 +15,7 @@ jobs: uses: actions/cache@v1 with: path: ~/.cargo/bin - key: rustsec-admin-v0.1.1 + key: rustsec-admin-v0.2.0 - name: Install rustsec-admin run: |