Skip to content

Ci/apply zizmor security audit #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: "Check out PR branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Run audit"
run: |
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Generate cache key"
run: echo "${{ matrix.rust.version }} ${{ matrix.features }}" | tee .cache_key
env:
MATRIX_RUST_VERSION: ${{ matrix.rust.version }}
MATRIX_FEATURES: ${{ matrix.features }}
run: echo "$MATRIX_RUST_VERSION $MATRIX_FEATURES" | tee .cache_key

- name: "Cache"
uses: actions/cache@v3
Expand All @@ -36,7 +41,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}

- name: "Set default toolchain"
run: rustup default ${{ matrix.rust.version }}
env:
MATRIX_RUST_VERSION: ${{ matrix.rust.version }}
run: rustup default $MATRIX_RUST_VERSION

- name: "Set profile"
run: rustup set profile minimal
Expand Down Expand Up @@ -67,6 +74,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Set default toolchain"
run: rustup default nightly
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/kotlin-api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
persist-credentials: false

- name: "Set up JDK 17"
uses: actions/setup-java@v2
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/live-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: "Checkout publishing branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down Expand Up @@ -42,6 +44,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Build Swift package"
working-directory: bdk-swift
Expand Down Expand Up @@ -71,6 +75,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Rust 1.84.1"
uses: actions-rs/toolchain@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- name: "Check out PR branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-jvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
steps:
- name: "Checkout publishing branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down Expand Up @@ -42,6 +44,8 @@ jobs:
steps:
- name: "Checkout publishing branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Set up JDK"
uses: actions/setup-java@v4
Expand All @@ -67,6 +71,8 @@ jobs:
steps:
- name: "Checkout publishing branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Rust 1.84.1"
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Python"
uses: actions/setup-python@v4
Expand Down Expand Up @@ -103,6 +105,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Python"
uses: actions/setup-python@v4
Expand Down Expand Up @@ -141,6 +144,8 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
Expand All @@ -167,6 +172,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Download artifacts in dist/ directory"
uses: actions/download-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

- name: "Check out PR branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-jvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: "Check out PR branch"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Cache"
uses: actions/cache@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Rust 1.84.1"
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -80,6 +81,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Python"
uses: actions/setup-python@v4
Expand Down Expand Up @@ -125,6 +127,8 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
Expand Down Expand Up @@ -168,6 +172,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Python"
uses: actions/setup-python@v4
Expand Down Expand Up @@ -204,6 +209,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false

- name: "Install Ruff"
run: curl -LsSf https://astral.sh/ruff/install.sh | sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Build Swift package"
working-directory: bdk-swift
Expand Down