mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-11-12 22:50:32 +03:00
ci: Use commit hash for some actions to pin them (#641)
Pins some actions using a specific commit hash.
This commit is contained in:
parent
eaff52c8a4
commit
9a11ead991
2
.github/workflows/audit.yml
vendored
2
.github/workflows/audit.yml
vendored
@ -13,6 +13,6 @@ jobs:
|
||||
- uses: actions-rs/install@master
|
||||
with:
|
||||
crate: cargo-audit
|
||||
- uses: actions-rs/audit-check@v1
|
||||
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 # 1.2.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
- windows-2019
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
with:
|
||||
profile: minimal
|
||||
@ -43,7 +43,7 @@ jobs:
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
- run: cargo fmt --all -- --check
|
||||
@ -60,7 +60,7 @@ jobs:
|
||||
- windows-2019
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
with:
|
||||
profile: minimal
|
||||
@ -78,7 +78,7 @@ jobs:
|
||||
override: true
|
||||
components: clippy
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
- run: cargo clippy --all-targets --workspace -- -D warnings
|
||||
@ -193,7 +193,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -205,14 +205,14 @@ jobs:
|
||||
|
||||
- name: Install toolchain
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.triple.rust }}
|
||||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
@ -255,7 +255,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -267,14 +267,14 @@ jobs:
|
||||
|
||||
- name: Install toolchain
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.triple.rust }}
|
||||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
@ -317,7 +317,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -329,14 +329,14 @@ jobs:
|
||||
|
||||
- name: Install toolchain
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.triple.rust }}
|
||||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
|
6
.github/workflows/coverage.yml
vendored
6
.github/workflows/coverage.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
concurrent_skipping: "same_content_newer"
|
||||
skip_after_successful_duplicate: "true"
|
||||
@ -34,7 +34,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
|
||||
@ -43,6 +43,6 @@ jobs:
|
||||
cargo tarpaulin --verbose --all-features --workspace --run-types AllTargets --timeout 120 --out Xml
|
||||
|
||||
- name: Upload to codecov.io
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # 2.1.0
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
16
.github/workflows/deployment.yml
vendored
16
.github/workflows/deployment.yml
vendored
@ -140,14 +140,14 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
|
||||
@ -243,19 +243,19 @@ jobs:
|
||||
run: Install-WindowsFeature Net-Framework-Core
|
||||
|
||||
- name: Install wixtoolset (Windows x86-64 MSVC)
|
||||
uses: crazy-max/ghaction-chocolatey@v1.4.0
|
||||
uses: crazy-max/ghaction-chocolatey@87d06bbbd2cfb1835f1820042d356aef4875fb5f # 1.6.0
|
||||
with:
|
||||
args: install -y wixtoolset
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: x86_64-pc-windows-msvc
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: x86_64-pc-windows-msvc-msi
|
||||
|
||||
@ -315,14 +315,14 @@ jobs:
|
||||
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: x86_64-unknown-linux-gnu-deb
|
||||
|
||||
@ -429,7 +429,7 @@ jobs:
|
||||
ls ./release
|
||||
|
||||
- name: Upload all saved release files
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@17cd0d34deddf848fc0e7d9be5202c148c270a0a # 0.1.14
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
prerelease: false
|
||||
|
18
.github/workflows/nightly.yml
vendored
18
.github/workflows/nightly.yml
vendored
@ -136,14 +136,14 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: ${{ matrix.triple.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: ${{ matrix.triple.target }}
|
||||
|
||||
@ -237,19 +237,19 @@ jobs:
|
||||
run: Install-WindowsFeature Net-Framework-Core
|
||||
|
||||
- name: Install wixtoolset
|
||||
uses: crazy-max/ghaction-chocolatey@v1.4.0
|
||||
uses: crazy-max/ghaction-chocolatey@87d06bbbd2cfb1835f1820042d356aef4875fb5f # 1.6.0
|
||||
with:
|
||||
args: install -y wixtoolset
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: x86_64-pc-windows-msvc
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: x86_64-pc-windows-msvc-msi
|
||||
|
||||
@ -302,14 +302,14 @@ jobs:
|
||||
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
|
||||
with:
|
||||
key: x86_64-unknown-linux-gnu-deb
|
||||
|
||||
@ -349,7 +349,7 @@ jobs:
|
||||
ls ./release
|
||||
|
||||
- name: Delete tag and release
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.1.3
|
||||
uses: dev-drprasad/delete-tag-and-release@085c6969f18bad0de1b9f3fe6692a3cd01f64fe5 # 0.2.0
|
||||
if: github.event.inputs.isMock != 'mock'
|
||||
with:
|
||||
delete_release: true
|
||||
@ -362,7 +362,7 @@ jobs:
|
||||
if: github.event.inputs.isMock != 'mock'
|
||||
|
||||
- name: Upload all saved release files if not mock
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@17cd0d34deddf848fc0e7d9be5202c148c270a0a # 0.1.14
|
||||
if: github.event.inputs.isMock != 'mock'
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
2
.github/workflows/test-docs.yml
vendored
2
.github/workflows/test-docs.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||
with:
|
||||
skip_after_successful_duplicate: "true"
|
||||
paths: '["docs/**", ".github/workflows/docs.yml"]'
|
||||
|
@ -8,7 +8,7 @@ This site serves as extended documentation for bottom alongside the [`README.md`
|
||||
|
||||
!!! Warning
|
||||
|
||||
Some areas of this documentation are still in progress and may be missing details. Feel free to suggest/contribute changes!
|
||||
Some areas of this site are still in progress and may be missing details. Feel free to suggest/contribute changes!
|
||||
|
||||
## Installation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user