Skip to content

Commit e50e89e

Browse files
authored
Merge branch 'main' into master
Signed-off-by: Chris Milson-Tokunaga <[email protected]>
2 parents 049386b + 2fb6ec2 commit e50e89e

File tree

307 files changed

+4650
-1007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+4650
-1007
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

12-
[{*.yml, *.tf}]
12+
[{*.yml,*.tf}]
1313
indent_style = space
1414
indent_size = 2

.github/workflows/codeql-analysis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,25 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches:
17+
- "main"
18+
- "release/*"
19+
paths-ignore:
20+
- '**/*.md'
1721
pull_request:
1822
# The branches below must be a subset of the branches above
19-
branches: [ master ]
23+
branches:
24+
- "main"
25+
- "release/*"
26+
paths-ignore:
27+
- '**/*.md'
2028
schedule:
2129
- cron: '15 11 * * 0'
2230

2331
jobs:
2432
analyze:
2533
name: Analyze
26-
runs-on: ubuntu-latest
34+
runs-on: ubuntu-24.04
2735
permissions:
2836
actions: read
2937
contents: read
@@ -38,17 +46,17 @@ jobs:
3846

3947
steps:
4048
- name: Checkout Code
41-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
4250

4351
- name: Set up Go
44-
uses: actions/setup-go@v3
52+
uses: actions/setup-go@v5
4553
with:
4654
go-version-file: 'go.mod'
4755
cache: true
4856

4957
# Initializes the CodeQL tools for scanning.
5058
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
59+
uses: github/codeql-action/init@v3
5260
with:
5361
languages: ${{ matrix.language }}
5462
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -59,7 +67,7 @@ jobs:
5967
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6068
# If this step fails, then you should remove it and run the build manually (see below)
6169
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v2
70+
uses: github/codeql-action/autobuild@v3
6371

6472
# ℹ️ Command-line programs to run using the OS shell.
6573
# 📚 https://git.io/JvXDl
@@ -73,4 +81,4 @@ jobs:
7381
# make release
7482

7583
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
84+
uses: github/codeql-action/analyze@v3

.github/workflows/dependency-submission.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@ name: Go Dependency Submission
22
on:
33
push:
44
branches:
5-
- master
5+
- main
6+
paths-ignore:
7+
- '**/*.md'
68

79
permissions:
810
contents: write
911

1012
jobs:
1113
go-dependency-submission:
12-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1315
steps:
1416
- name: Checkout Code
15-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1618

1719
- name: Set up Go
18-
uses: actions/setup-go@v3
20+
uses: actions/setup-go@v5
1921
with:
2022
go-version-file: 'go.mod'
2123
cache: true
2224

2325
- name: Run snapshot action
24-
uses: actions/go-dependency-submission@v1
26+
uses: actions/go-dependency-submission@v2
2527
with:
2628
go-mod-path: go.mod

.github/workflows/release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
jobs:
88
wait:
99
if: startsWith(github.ref, 'refs/tags/v')
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
name: Wait for acceptance tests
1212
steps:
1313
- name: Wait for acceptance tests
1414
id: wait
15-
uses: "WyriHaximus/github-action-wait-for-status@v1.4.0"
15+
uses: "WyriHaximus/github-action-wait-for-status@v1.8.0"
1616
with:
1717
ignoreActions: Wait for acceptance tests
1818
checkInterval: 30
@@ -22,45 +22,45 @@ jobs:
2222
status: steps.wait.outputs.status
2323

2424
release:
25+
permissions: write-all
2526
needs:
2627
- wait
27-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-24.04
2829
steps:
2930
- name: Checkout Code
30-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3132

3233
- name: Set up Go
33-
uses: actions/setup-go@v3
34+
uses: actions/setup-go@v5
3435
with:
3536
go-version-file: 'go.mod'
3637
cache: true
3738

3839
- name: Import GPG key
3940
id: import_gpg
40-
uses: crazy-max/ghaction-import-gpg@v2
41-
env:
42-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
43-
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
41+
uses: crazy-max/ghaction-import-gpg@v6
42+
with:
43+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
44+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
4445

4546
- name: Get tag name
4647
id: get_tag_name
47-
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
48+
run: echo "name=TAG::${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
4849

4950
- name: Build release notes link
5051
id: build-release-notes
5152
run: |
5253
releaseDate=$(date '+%B-%-d-%Y' | tr '[:upper:]' '[:lower:]')
5354
releaseVersion=$(echo ${{ steps.get_tag_name.outputs.TAG }} | tr -d '.')
5455
tmp=$(mktemp -d)
55-
echo "[Release Notes](https://github.com/mrparkers/terraform-provider-keycloak/blob/master/CHANGELOG.md#${releaseVersion}-${releaseDate})" > ${tmp}/release-notes.md
56+
echo "[Release Notes](https://github.com/keycloak/terraform-provider-keycloak/blob/main/CHANGELOG.md#${releaseVersion}-${releaseDate})" > ${tmp}/release-notes.md
5657
cat ${tmp}/release-notes.md
57-
echo ::set-output name=NOTES::${tmp}/release-notes.md
58+
echo "name=NOTES::${tmp}/release-notes.md" >> $GITHUB_OUTPUT
5859
5960
- name: GoReleaser
60-
uses: goreleaser/goreleaser-action@v2
61+
uses: goreleaser/goreleaser-action@v6
6162
with:
62-
version: v0.179.0
63-
args: release --rm-dist --release-notes=${{ steps.build-release-notes.outputs.NOTES }}
63+
args: release --clean --release-notes=${{ steps.build-release-notes.outputs.NOTES }}
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.github/workflows/test.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@ name: test
22
on:
33
push:
44
branches:
5-
- master
5+
- "main"
6+
- "release/*"
7+
paths-ignore:
8+
- '**/*.md'
69
pull_request:
710
branches:
8-
- master
11+
- "main"
12+
- "release/*"
13+
paths-ignore:
14+
- '**/*.md'
915

1016
jobs:
1117
verify:
12-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04
1319
steps:
1420
- name: Checkout Code
15-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
1622
with:
1723
fetch-depth: 2 # we want the HEAD commit and the previous commit to compare changed files
1824

1925
- name: Set up Go
20-
uses: actions/setup-go@v3
26+
uses: actions/setup-go@v5
2127
with:
2228
go-version-file: 'go.mod'
2329
cache: true
@@ -31,7 +37,7 @@ jobs:
3137
# we only want to run tests if any code changes (not for README or docs changes)
3238
- name: Check Changed Files
3339
id: files
34-
uses: tj-actions/changed-files@v41.0.0
40+
uses: tj-actions/changed-files@v45
3541
with:
3642
files: |
3743
.github
@@ -56,32 +62,34 @@ jobs:
5662
(needs.verify.outputs.code-files-changed || startsWith(github.ref, 'refs/tags/v'))
5763
needs:
5864
- verify
59-
runs-on: ubuntu-latest
65+
runs-on: ubuntu-24.04
6066
strategy:
6167
matrix:
6268
keycloak-version:
63-
- '21.0.1'
64-
- '20.0.5'
65-
- '19.0.2'
69+
- '26.0.8'
70+
- '25.0.6'
71+
- '24.0.5'
72+
- '23.0.7'
73+
- '22.0.5'
6674
fail-fast: false
6775
concurrency:
6876
group: ${{ github.head_ref || github.run_id }}-${{ matrix.keycloak-version }}
6977
cancel-in-progress: true
7078
steps:
7179
- name: Checkout Code
72-
uses: actions/checkout@v3
80+
uses: actions/checkout@v4
7381

7482
- name: Set up Go
75-
uses: actions/setup-go@v3
83+
uses: actions/setup-go@v5
7684
with:
7785
go-version-file: 'go.mod'
7886
cache: true
7987

8088
- name: Setup Terraform
81-
uses: hashicorp/setup-terraform@v1
89+
uses: hashicorp/setup-terraform@v3
8290
with:
8391
terraform_wrapper: false
84-
terraform_version: 1.9.5
92+
terraform_version: 1.9.8
8593

8694
- name: Start Keycloak Container
8795
run: |
@@ -99,7 +107,7 @@ jobs:
99107
run: ./scripts/wait-for-local-keycloak.sh && ./scripts/create-terraform-client.sh
100108

101109
- name: Get Keycloak Version
102-
uses: actions/github-script@v6
110+
uses: actions/github-script@v7
103111
id: keycloak-version
104112
env:
105113
KEYCLOAK_VERSION: ${{ matrix.keycloak-version }}
@@ -108,12 +116,13 @@ jobs:
108116
return process.env.KEYCLOAK_VERSION.split("-")[0]
109117
- name: Test
110118
run: |
119+
terraform version
111120
go mod download
112121
make testacc
113122
env:
114123
KEYCLOAK_CLIENT_ID: terraform
115124
KEYCLOAK_CLIENT_SECRET: 884e0f95-0f42-4a63-9b1f-94274655669e
116-
KEYCLOAK_CLIENT_TIMEOUT: 30
125+
KEYCLOAK_CLIENT_TIMEOUT: 120
117126
KEYCLOAK_REALM: master
118127
KEYCLOAK_URL: "http://localhost:8080"
119128
KEYCLOAK_TEST_PASSWORD_GRANT: "true"

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ terraform-provider-keycloak_*
1414
*.out
1515

1616
.idea/
17+
.vscode/
1718
.terraform/
1819
terraform.d/
1920
.terraform.lock.hcl
2021
terraform.tfstate*
2122

23+
# local experiments or reproducers
24+
scratch/
25+
2226
.gradle/
2327

2428
# custom user federation example
@@ -32,3 +36,5 @@ site/
3236
*.zip
3337

3438
.DS_Store
39+
40+
test_env.json

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ signs:
4747
- artifacts: checksum
4848
args:
4949
# if you are using this is a GitHub action or some other automated pipeline, you
50-
# need to pass the batch flag to indicate its not interactive.
50+
# need to pass the batch flag to indicate it's not interactive.
5151
- "--batch"
5252
- "--local-user"
5353
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key

.run/local debug.run.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="local debug" type="GoRemoteDebugConfigurationType" factoryName="Go Remote" port="58772">
3+
<option name="disconnectOption" value="STOP" />
4+
<disconnect value="STOP" />
5+
<method v="2" />
6+
</configuration>
7+
</component>

0 commit comments

Comments
 (0)