File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed
Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -105,3 +105,39 @@ jobs:
105105 with :
106106 vexctl-release : ' honk'
107107 continue-on-error : true
108+
109+ test_vexctl_action_custom_cosign_release :
110+ strategy :
111+ matrix :
112+ os :
113+ - macos-latest
114+ - ubuntu-latest
115+ - windows-latest
116+ runs-on : ${{ matrix.os }}
117+ permissions : {}
118+ name : Install with custom cosign release
119+ steps :
120+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
121+ - name : Install vexctl
122+ uses : ./
123+ with :
124+ cosign-release : v2.6.1
125+ - name : Check vexctl install!
126+ run : vexctl version
127+ - name : Check cosign install!
128+ run : |-
129+ if [[ "$(cosign version --json | jq -r .gitVersion)" != 'v2.6.1' ]]; then
130+ echo 'unexpected cosign version'
131+ exit 1
132+ fi
133+ shell : bash
134+
135+ - name : Check root directory
136+ run : |
137+ if [[ $(git diff --stat) != '' ]]; then
138+ echo 'should be clean'
139+ exit 1
140+ else
141+ exit 0
142+ fi
143+ shell : bash
Original file line number Diff line number Diff line change @@ -57,5 +57,6 @@ The following optional inputs:
5757| Input | Description |
5858| --- | --- |
5959| ` vexctl-release` | `vexctl` version to use instead of the default. |
60+ | `cosign-release` | `cosign` version to use instead of the default. |
6061| `install-dir` | directory to place the `vexctl` binary into instead of the default (`$HOME/.vexctl`). |
6162| `use-sudo` | set to `true` if `install-dir` location requires sudo privs. Defaults to false. |
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ inputs:
1515 description : ' vexctl release version to be installed'
1616 required : false
1717 default : ' 0.3.0'
18+ cosign-release :
19+ description : ' cosign release version to be installed'
20+ required : false
21+ default : ' v3.0.2'
1822 install-dir :
1923 description : ' Where to install the vexctl binary'
2024 required : false
2832 steps :
2933 - uses : sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
3034 with :
35+ cosign-release : ${{ inputs.cosign-release }}
3136 install-dir : ${{ inputs.install-dir }}
3237 use-sudo : ${{ inputs.use-sudo }}
3338 - shell : bash
You can’t perform that action at this time.
0 commit comments