Skip to content

Commit 27a850a

Browse files
authored
Upgrade to go version 1.24 (#10)
* Update all to version 1.24 * Update all to version 1.24
1 parent 0ecf047 commit 27a850a

File tree

5 files changed

+32
-23
lines changed

5 files changed

+32
-23
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
name: lint
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/setup-go@v3
14+
- uses: actions/setup-go@v5
1515
with:
16-
go-version: 1.18
17-
- uses: actions/checkout@v3
16+
go-version: "1.24"
17+
- uses: actions/checkout@v4
1818
- name: golangci-lint
1919
uses: golangci/[email protected]
2020
with:
@@ -38,4 +38,4 @@ jobs:
3838
# skip-pkg-cache: true
3939

4040
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
41-
# skip-build-cache: true
41+
# skip-build-cache: true

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@ name: release
22
on:
33
push:
44
tags:
5-
- 'v*'
5+
- "v*"
66
jobs:
77
goreleaser:
88
permissions: write-all
99
runs-on: ubuntu-latest
1010
steps:
11-
-
12-
name: Checkout
13-
uses: actions/checkout@v3
14-
-
15-
name: Set up Go
16-
uses: actions/setup-go@v3
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Set up Go
14+
uses: actions/setup-go@v5
1715
with:
18-
go-version: 1.18
19-
-
20-
name: Run GoReleaser
16+
go-version: "1.24"
17+
- name: Run GoReleaser
2118
uses: goreleaser/goreleaser-action@v6
2219
with:
2320
version: "~> v2"
2421
args: release --clean
2522
env:
2623
# GitHub sets this automatically
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ linters-settings:
5151

5252
run:
5353
timeout: 25m
54-
go: "1.18"
54+
go: "1.24"

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
# Infinity Next Terraform CLI
2+
23
The project provides a command line interface for using the API of Infinity Next
34

4-
## Generating an API Key *(Required)*
5+
## Generating an API Key _(Required)_
6+
57
If already have an API key from setting up [terraform-provider-infinity-next](https://github.com/CheckPointSW/terraform-provider-infinity-next) then you can skip this section.
6-
1. Go to https://portal.checkpoint.com, navigate to *Global Settings -> API Keys*
78

8-
2. Create a new API key and select *Infinity Policy* as the service, with *Admin* role, we recommend that you specify a meaningful comment for the key so you could identify them later and avoid mistakes.
9+
1. Go to https://portal.checkpoint.com, navigate to _Global Settings -> API Keys_
10+
11+
2. Create a new API key and select _Infinity Policy_ as the service, with _Admin_ role, we recommend that you specify a meaningful comment for the key so you could identify them later and avoid mistakes.
912

10-
3. Store the *Client ID* and *Secret Key* in a secure location, and note there's no way to view the secret key afterward.
13+
3. Store the _Client ID_ and _Secret Key_ in a secure location, and note there's no way to view the secret key afterward.
1114

1215
## Usage
16+
1317
Download and install the CLI found in the [latest release](https://github.com/CheckPointSW/infinity-next-terraform-cli/releases/latest)
1418

1519
You could run `inext help` and get all available options and commands.
1620

1721
The CLI requires the same credentials used to configure the provider, there are 3 options to pass these credentials to the CLI:
1822

1923
1. Set the environment variables: `INEXT_REGION`, `INEXT_CLIENT_ID` and `INEXT_ACCESS_KEY` and run `inext <command>`, this is more comfortable for usage right after `terraform apply` since it uses the same environment variables.
20-
2124
2. Set credentials using flags `--client-id` (shorthand `-c`) and `--access-key` (shorthand `-k`)
25+
2226
```
2327
inext publish -c $INEXT_CLIENT_ID -k $INEXT_ACCESS_KEY -r us
2428
```
@@ -32,19 +36,25 @@ The CLI requires the same credentials used to configure the provider, there are
3236
Run `inext <command>` and the CLI would be configured using `~/.inext.yaml` by default, can be set using `inext --config <config-path> <command>`
3337

3438
## Example
39+
3540
```
3641
inext publish && inext enforce
3742
```
3843

3944
## Build
45+
4046
### Requirements
41-
* Go 1.18+
47+
48+
- Go 1.24+
4249

4350
To build the CLI run:
51+
4452
```
4553
go build -o inext
4654
```
55+
4756
You could then install it by running:
57+
4858
```
4959
cp inext /usr/local/bin
50-
```
60+
```

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/CheckPointSW/infinity-next-terraform-cli
22

33
go 1.24.0
44

5+
toolchain go1.24.2
6+
57
require (
68
github.com/golang-jwt/jwt/v5 v5.3.0
79
github.com/spf13/cobra v1.10.1

0 commit comments

Comments
 (0)