diff --git a/.github/workflows/branches-and-prs.main.kts b/.github/workflows/branches-and-prs.main.kts index c46821fe74..08637c33fd 100755 --- a/.github/workflows/branches-and-prs.main.kts +++ b/.github/workflows/branches-and-prs.main.kts @@ -40,6 +40,8 @@ import io.github.typesafegithub.workflows.domain.triggers.Push import io.github.typesafegithub.workflows.dsl.expressions.Contexts.github import io.github.typesafegithub.workflows.dsl.expressions.expr import io.github.typesafegithub.workflows.dsl.workflow +import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource.InferFromClasspath +import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG workflow( name = "Verify Branches and PRs", @@ -58,6 +60,9 @@ workflow( concurrency = Concurrency( group = "${expr { github.workflow }}-${expr("${github.eventPullRequest.pull_request.number} || ${github.ref}")}", cancelInProgress = true + ), + consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy( + checkoutActionVersion = InferFromClasspath() ) ) { job( diff --git a/.github/workflows/branches-and-prs.yaml b/.github/workflows/branches-and-prs.yaml index b748ab15c1..77a9cd47ed 100644 --- a/.github/workflows/branches-and-prs.yaml +++ b/.github/workflows/branches-and-prs.yaml @@ -20,7 +20,7 @@ jobs: steps: - id: 'step-0' name: 'Check out' - uses: 'actions/checkout@v4' + uses: 'actions/checkout@v6' - id: 'step-1' name: 'Execute script' run: 'rm ''.github/workflows/branches-and-prs.yaml'' && ''.github/workflows/branches-and-prs.main.kts''' diff --git a/.github/workflows/codeql-analysis.main.kts b/.github/workflows/codeql-analysis.main.kts index 0777f0af73..87605a78db 100755 --- a/.github/workflows/codeql-analysis.main.kts +++ b/.github/workflows/codeql-analysis.main.kts @@ -36,6 +36,8 @@ import io.github.typesafegithub.workflows.domain.triggers.* import io.github.typesafegithub.workflows.dsl.expressions.Contexts.github import io.github.typesafegithub.workflows.dsl.expressions.expr import io.github.typesafegithub.workflows.dsl.workflow +import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource.InferFromClasspath +import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG workflow( name = "Code scanning - action", @@ -60,6 +62,9 @@ workflow( concurrency = Concurrency( group = "${expr { github.workflow }}-${expr("${github.eventPullRequest.pull_request.number} || ${github.ref}")}", cancelInProgress = true + ), + consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy( + checkoutActionVersion = InferFromClasspath() ) ) { job( diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index c7a34343d8..11cf36164c 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -21,7 +21,7 @@ jobs: steps: - id: 'step-0' name: 'Check out' - uses: 'actions/checkout@v4' + uses: 'actions/checkout@v6' - id: 'step-1' name: 'Execute script' run: 'rm ''.github/workflows/codeql-analysis.yaml'' && ''.github/workflows/codeql-analysis.main.kts''' diff --git a/.github/workflows/docs-pr.main.kts b/.github/workflows/docs-pr.main.kts index 5c41500d6a..a6be39076d 100755 --- a/.github/workflows/docs-pr.main.kts +++ b/.github/workflows/docs-pr.main.kts @@ -37,6 +37,8 @@ import io.github.typesafegithub.workflows.domain.triggers.Push import io.github.typesafegithub.workflows.dsl.expressions.Contexts.github import io.github.typesafegithub.workflows.dsl.expressions.expr import io.github.typesafegithub.workflows.dsl.workflow +import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource.InferFromClasspath +import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG workflow( name = "Verify Docs", @@ -55,6 +57,9 @@ workflow( concurrency = Concurrency( group = "${expr { github.workflow }}-${expr("${github.eventPullRequest.pull_request.number} || ${github.ref}")}", cancelInProgress = true + ), + consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy( + checkoutActionVersion = InferFromClasspath() ) ) { job( diff --git a/.github/workflows/docs-pr.yaml b/.github/workflows/docs-pr.yaml index f3d930a41c..7262ddc34f 100644 --- a/.github/workflows/docs-pr.yaml +++ b/.github/workflows/docs-pr.yaml @@ -20,7 +20,7 @@ jobs: steps: - id: 'step-0' name: 'Check out' - uses: 'actions/checkout@v4' + uses: 'actions/checkout@v6' - id: 'step-1' name: 'Execute script' run: 'rm ''.github/workflows/docs-pr.yaml'' && ''.github/workflows/docs-pr.main.kts''' diff --git a/.github/workflows/release.main.kts b/.github/workflows/release.main.kts index 415c7c8d72..49d6013573 100755 --- a/.github/workflows/release.main.kts +++ b/.github/workflows/release.main.kts @@ -35,6 +35,8 @@ import io.github.typesafegithub.workflows.dsl.expressions.Contexts.github import io.github.typesafegithub.workflows.dsl.expressions.Contexts.secrets import io.github.typesafegithub.workflows.dsl.expressions.expr import io.github.typesafegithub.workflows.dsl.workflow +import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource.InferFromClasspath +import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG workflow( name = "Build and Release Spock", @@ -44,7 +46,10 @@ workflow( tags = listOf("spock-*") ) ), - sourceFile = __FILE__ + sourceFile = __FILE__, + consistencyCheckJobConfig = DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy( + checkoutActionVersion = InferFromClasspath() + ) ) { val GITHUB_TOKEN by secrets val SONATYPE_OSS_USER by secrets diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 227c0f5de6..2f61e55b2e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: steps: - id: 'step-0' name: 'Check out' - uses: 'actions/checkout@v4' + uses: 'actions/checkout@v6' - id: 'step-1' name: 'Execute script' run: 'rm ''.github/workflows/release.yaml'' && ''.github/workflows/release.main.kts'''