Skip to content

Commit

Permalink
Sync GitHub Actions permissions and GITHUB_TOKEN handling with *ring*.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Apr 26, 2021
1 parent 194fa52 commit 6a15d6e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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: cargo clippy --all-features ---all-targets -- --deny warnings

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 --vers "0.8.4"

- 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 Down Expand Up @@ -152,6 +164,8 @@ jobs:

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

- uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -193,6 +207,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 6a15d6e

Please sign in to comment.