diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index b3b0e17..7f8b847 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -6,8 +6,8 @@ author: ok-nick inputs: version: required: false - no-trust-check: - default: 'false' + trust-check: + default: 'true' required: false trusts: required: false @@ -34,7 +34,7 @@ runs: uses: ./ with: version: ${{ inputs.version }} - no-trust-check: ${{ inputs.no-trust-check }} + trust-check: ${{ inputs.no-trust-check }} trusts: ${{ inputs.trusts }} path: ${{ inputs.path }} token: ${{ inputs.token }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5da7e0a..94cfc71 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,7 +19,7 @@ jobs: - uses: ./.github/actions/test with: - no-trust-check: true + trust-check: false test_mac_no_trust: runs-on: macos-latest @@ -28,7 +28,7 @@ jobs: - uses: ./.github/actions/test with: - no-trust-check: true + trust-check: false test_windows_no_trust: runs-on: windows-latest @@ -37,7 +37,7 @@ jobs: - uses: ./.github/actions/test with: - no-trust-check: true + trust-check: false test_linux_with_trust: runs-on: ubuntu-latest @@ -75,7 +75,7 @@ jobs: - uses: ./.github/actions/test with: version: v0.2.2 - no-trust-check: true + trust-check: false path: "./project" test_mac_version_and_path: @@ -87,10 +87,9 @@ jobs: - uses: ./.github/actions/test with: version: v0.2.2 - no-trust-check: true + trust-check: false path: "./project" - test_windows_version_and_path: runs-on: windows-latest steps: @@ -100,5 +99,5 @@ jobs: - uses: ./.github/actions/test with: version: v0.2.2 - no-trust-check: true + trust-check: false path: "./project" diff --git a/README.md b/README.md index c1a4576..99c5e83 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ steps: |name|description|default| |---|---|---| |`version`|`aftman` version in the form `vx.x.x`|-| -|`no-trust-check`|Whether to check trusts|`false`| +|`trust-check`|Whether to check trusts|`true`| |`trusts`|List of trusted tools separated by spaces|-| |`path`|Path to the `aftman.toml` directory|`./`| |`token`|Github token from `github.token`|`github.token`| diff --git a/action.yml b/action.yml index d09bbcd..5b54cc1 100644 --- a/action.yml +++ b/action.yml @@ -6,9 +6,9 @@ inputs: version: description: '`aftman` version in the form `vx.x.x`' required: false - no-trust-check: + trust-check: description: "Whether to check trusts" - default: 'false' + default: 'true' required: false trusts: description: 'List of trusted tools separated by spaces' @@ -54,7 +54,7 @@ runs: shell: bash - name: Setup trusts - if: inputs.no-trust-check == 'false' + if: inputs.trust-check == 'false' run: | for name in ${{ inputs.trusts }}; do aftman trust $name @@ -64,8 +64,8 @@ runs: - name: Install tools run: | cd ${{ inputs.path }} - if [ ${{ inputs.no-trust-check }} == true ]; then - aftman install --no-trust-check + if [ ${{ inputs.trust-check }} == true ]; then + aftman install --trust-check else aftman install fi