Skip to content
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: 1 addition & 1 deletion .github/workflows/blockchain-contracts-abi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Check Blockchain Contract ABI staleness
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/blockchain-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-8x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-8x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: LargeRunner # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blockchain-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
prettier_check:
runs-on: warp-ubuntu-latest-x64-2x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Use Node.js
uses: WarpBuilds/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-buildjet-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-2x
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: buildjet/cache-delete@v1
with:
cache_key: ${{ inputs.cache_key }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fi

- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ inputs.release_branch || github.ref }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-lit-node-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

# Install Rust Nightly Toolchain, with Clippy & Rustfmt
- name: Install nightly Rust
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-release-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

steps:
- name: Checkout UI Code from lit-ansible
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: 'LIT-Protocol/lit-ansible'
path: 'lit-ansible'
Expand All @@ -45,10 +45,10 @@ jobs:
# When triggered manually, use the branch specified in the input.
ref: ${{ github.event.inputs.source_branch || 'master' }}

- name: Checkout Release Data from lit-assets
- name: Checkout Release Data from lit-peer
uses: actions/checkout@v5
with:
repository: 'LIT-Protocol/lit-assets'
repository: 'LIT-Protocol/lit-peer'
ref: 'releases-info'
path: 'lit-ansible/release-data-store'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-ubuntu2204-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
runs-on: LargeRunner
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- id: pre-step
shell: bash
run: echo "release-version=$(date +%s)" >> "$GITHUB_OUTPUT"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-workflow-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Download actionlint
run: |
curl -sfL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash -s -- latest ${{ github.workspace }}
- name: Run actionlint
run: ${{ github.workspace }}/actionlint -ignore 'label ".+" is unknown'
run: ${{ github.workspace }}/actionlint -ignore 'label ".+" is unknown' -ignore '"false" is always evaluated to false.'
env:
# Part of what actionlint does under the hood is to use the Shellcheck tool to lint against where we use the run field to specify shell commands to run.
# Silence the following shellcheck errors since they are not too applicable.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/list-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: tj-actions/branch-names@v9

- name: Make sure we checked out develop, so we can get it's sha
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ steps.branch-name.outputs.base_ref_branch }}

Expand All @@ -58,7 +58,7 @@ jobs:
blockchain_changed: ${{ steps.changed-files-yaml.outputs.blockchain_any_modified }}
steps:
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Print base sha
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-cargo-fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Verify Cargo Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Install rust
uses: dtolnay/rust-toolchain@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
rm -rf ../../lit-assets
mkdir -p ${{ github.workspace }}
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
rm -rf ../../lit-assets
mkdir -p ${{ github.workspace }}
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-build-commit-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
rm -rf ../../lit-assets
mkdir -p ${{ github.workspace }}
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://glitch003:${{secrets.READ_ONLY_PAT}}@github.com/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-build-if-needed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
artifact_exists: ${{ steps.artifact_exists.outputs.cache-hit }}
steps:
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://glitch003:${{secrets.READ_ONLY_PAT}}@github.com/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
rm -rf ../../lit-assets
mkdir -p ${{ github.workspace }}
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://glitch003:${{secrets.READ_ONLY_PAT}}@github.com/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y libudev-dev libsqlite3-dev cmake protobuf-compiler
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://glitch003:${{secrets.READ_ONLY_PAT}}@github.com/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-fault-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y zstd
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y libudev-dev libsqlite3-dev cmake protobuf-compiler
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://glitch003:${{secrets.READ_ONLY_PAT}}@github.com/
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y zstd libudev-dev libsqlite3-dev cmake protobuf-compiler
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
submodules: recursive
- uses: de-vri-es/setup-git-credentials@v2
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y zstd libudev-dev libsqlite3-dev cmake protobuf-compiler
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-long-running-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y zstd
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
rm -rf ../../lit-assets
mkdir -p ${{ github.workspace }}
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install deps
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y libudev-dev libsqlite3-dev cmake protobuf-compiler
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-perf-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y zstd
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
submodules: recursive
- name: Use Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-node-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: LargeRunner
steps:
- name: "Check out the repo"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Get tag"
id: "get-tag"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-lit-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
working-directory: ${{ github.workspace }}
run: sudo apt-get update && sudo apt-get install -y libcryptsetup-dev libacl1-dev
- name: Checkout lit-assets
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 1 addition & 1 deletion rust/lit-node/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/lit-node/lit-node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lit_node"
version = "2.1.5"
version = "2.1.6"
edition.workspace = true
default-run = "lit_node"

Expand Down
2 changes: 1 addition & 1 deletion rust/lit-os/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion rust/lit-os/lit-cli-os/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lit os guest template release abc12345 \
- **Staging:** `naga-staging`
- **Test:** `datil-test`, `naga-test`
- **Development:** `datil-dev`, `naga-dev`, `internal-dev`
- **Proto:** `datil-proto`
- **Proto:** `datil-proto`, `naga-proto`

---

Expand Down Expand Up @@ -107,6 +107,8 @@ and ensure the gpg-agent is running.

The release command needs a GitHub Personal Access Token (PAT) to create releases.

**⚠️ Important:** We **must** use a Personal Access Token (PAT), not the default `GITHUB_TOKEN` from GitHub Actions. Releases created with the default `GITHUB_TOKEN` will **not** trigger workflows automatically due to GitHub's security restrictions. Therefore, until we migrate to Github Apps, pelase trigger the workflow manually to update the github page.

#### Create Personal Access Token

1. Go to: **GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)**
Expand All @@ -132,6 +134,8 @@ curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user

**Security note:** Keep your token secure! Never commit it to Git or share it publicly.

**Why a PAT is required:** GitHub prevents workflows from triggering other workflows when using the default `GITHUB_TOKEN` to avoid infinite loops. Using a PAT allows the release creation to trigger the deployment workflow automatically.

---

### 3. Path Requirements (CI Environment)
Expand Down
2 changes: 1 addition & 1 deletion rust/lit-os/lit-cli-os/src/cmd/os/guest/template/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ pub(crate) async fn do_os_guest_template_create(
network_name: None,
no_pinning: common_args.release_no_pinning,
push_only: false,
github_repo: "LIT-Protocol/lit-assets".to_string(),
github_repo: "LIT-Protocol/lit-peer".to_string(),
data_branch: "releases-info".to_string(),
};

Expand Down
4 changes: 3 additions & 1 deletion rust/lit-os/lit-cli-os/src/cmd/os/guest/template/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ pub(crate) enum NetworkName {
DatilProto,
#[value(name = "naga-prod")]
NagaProd,
#[value(name = "naga-proto")]
NagaProto,
#[value(name = "naga-staging")]
NagaStaging,
#[value(name = "naga-test")]
Expand Down Expand Up @@ -109,7 +111,7 @@ pub(crate) struct GuestTemplateRelease {
#[arg(long)]
pub(crate) no_pinning: bool,
/// GitHub repository in format owner/repo for publishing release information
#[arg(long, default_value = "LIT-Protocol/lit-assets")]
#[arg(long, default_value = "LIT-Protocol/lit-peer")]
pub(crate) github_repo: String,
/// The branch to commit release data to within the repository
#[arg(long, default_value = "releases-info")]
Expand Down
2 changes: 1 addition & 1 deletion rust/lit-os/lit-cli-os/src/guest/instance/oneshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub(crate) async fn create_oneshot_actions(
network_name: None,
no_pinning: prov_args.no_pinning,
push_only: true,
github_repo: "LIT-Protocol/lit-assets".to_string(),
github_repo: "LIT-Protocol/lit-peer".to_string(),
data_branch: "releases-info".to_string(),
};

Expand Down
Loading