Skip to content

Commit

Permalink
Sync GitHub permissions/token handling with what *ring* does.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Apr 23, 2021
1 parent 2baa7f8 commit 96a2a0f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: ci
permissions:
contents: read
on:
pull_request:
push:
Expand All @@ -16,6 +18,8 @@ jobs:
profile: minimal
components: rustfmt
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: cargo fmt --all -- --check

clippy:
Expand All @@ -32,6 +36,8 @@ jobs:
components: clippy

- uses: actions/checkout@v2
with:
persist-credentials: false

- run: mk/clippy.sh

Expand All @@ -58,6 +64,8 @@ jobs:
- run: cargo install cargo-audit --vers "0.13.1"

- uses: actions/checkout@v2
with:
persist-credentials: false

- run: cargo generate-lockfile

Expand Down Expand Up @@ -86,6 +94,8 @@ jobs:
- run: cargo install cargo-deny --locked --vers "0.8.5"

- uses: actions/checkout@v2
with:
persist-credentials: false

- run: cargo deny check

Expand Down Expand Up @@ -114,6 +124,8 @@ jobs:
toolchain: ${{ matrix.rust_channel }}

- uses: actions/checkout@v2
with:
persist-credentials: false

- run: |
cargo doc --all-features
Expand All @@ -131,6 +143,8 @@ jobs:
profile: minimal

- uses: actions/checkout@v2
with:
persist-credentials: false

- run: cargo package

Expand Down Expand Up @@ -195,6 +209,8 @@ jobs:
run: sudo apt-get update -y

- uses: actions/checkout@v2
with:
persist-credentials: false

- if: ${{ !contains(matrix.host_os, 'windows') }}
run: mk/install-build-tools.sh --target=${{ matrix.target }} ${{ matrix.features }}
Expand Down Expand Up @@ -248,6 +264,8 @@ jobs:
run: sudo apt-get update -y

- uses: actions/checkout@v2
with:
persist-credentials: false

- if: ${{ !contains(matrix.host_os, 'windows') }}
run: RING_COVERAGE=1 mk/install-build-tools.sh --target=${{ matrix.target }} ${{ matrix.features }}
Expand Down

0 comments on commit 96a2a0f

Please sign in to comment.