diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 8f247ca..158d03d 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -14,7 +14,7 @@ jobs: security_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dfe266..884a511 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: runs-on: "${{ matrix.environment.os }}" name: "${{ matrix.environment.os }} (${{ matrix.environment.target }})" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run tests run: cargo test --verbose - uses: actions-rs/toolchain@v1 @@ -82,7 +82,7 @@ jobs: - build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Release on Crates.io run: | cargo login ${{ secrets.CARGO_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 07a204c..381ee5a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,7 +11,7 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Clippy run: | rustup component add clippy @@ -25,24 +25,24 @@ jobs: strategy: matrix: environment: - - os: "ubuntu-18.04" + - os: "ubuntu-latest" target: "x86_64-unknown-linux-gnu" cross: true - os: "macos-10.15" target: "x86_64-apple-darwin" cross: true - - os: "ubuntu-18.04" + - os: "ubuntu-latest" target: "x86_64-pc-windows-gnu" cross: true packages: "gcc-mingw-w64" - - os: "ubuntu-18.04" + - os: "ubuntu-latest" target: "armv7-unknown-linux-gnueabihf" cross: true packages: "gcc-arm-linux-gnueabihf" runs-on: "${{ matrix.environment.os }}" name: "${{ matrix.environment.os }} (${{ matrix.environment.target }})" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run tests run: cargo test --verbose - uses: actions-rs/toolchain@v1 @@ -67,7 +67,7 @@ jobs: - test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install perftools run: | sudo apt-get update diff --git a/README.md b/README.md index e1de2db..7360a48 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ At this point `jwtinfo` will be available as a binary in your system. The following script will download and install precompiled binaries from the latest GitHub release ```bash -curl https://raw.githubusercontent.com/lmammino/jwtinfo/master/install.sh | sh +curl https://raw.githubusercontent.com/lmammino/jwtinfo/main/install.sh | sh ``` By default it will install the binary in `/usr/local/bin`. You can customize this by setting the `INSTALL_DIRECTORY` environment variable before running the script (e.g. `INSTALL_DIRECTORY=$HOME` will install the binary in `$HOME/bin`). diff --git a/install.sh b/install.sh index 4df4669..d170e7b 100644 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ # - DEP_ARCH (optional): use a specific value for ARCH (mostly for testing) # # You can install using this script: -# $ curl https://raw.githubusercontent.com/lmammino/jwtinfo/master/install.sh | sh +# $ curl https://raw.githubusercontent.com/lmammino/jwtinfo/main/install.sh | sh set -e