From e7fc730d1edd538a3ced26e1e62fb6efb833993c Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Tue, 12 Dec 2023 13:21:09 +0800 Subject: [PATCH 1/2] chore: update branch protection rules --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5738709..098ae91 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,12 @@ Configure the repository: * Require branches to be up-to-date before merging. * Required status checks: * CodeQL - * build - * buildimage - * commitlint - * go-test - * lint + * lint-actions + * lint-commits + * lint-go + * test-go + * dependency-review + * build-binaries * Include administrators 1. That's it. From e3d2a4b36339cc946022115cd904b9ab9670b3c5 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Tue, 12 Dec 2023 13:33:29 +0800 Subject: [PATCH 2/2] chore: ensure stable version of go is used in codeql --- .github/workflows/codeql-analysis.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 5aa093e..8697c74 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -20,6 +20,9 @@ jobs: - go steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 + with: + go-version: stable - name: Initialize CodeQL uses: github/codeql-action/init@c0d1daa7f7e14667747d73a7dbbe8c074bc8bfe2 # v2.22.9 with: