This is an automated email from the ASF dual-hosted git repository.
shuke987 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-streamloader.git
The following commit(s) were added to refs/heads/master by this push:
new e3e0d76 [chore](ci) Require approval and CI checks on master (#42)
e3e0d76 is described below
commit e3e0d76a8e06e091a05799fe1bf9031b458b60f8
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Thu Nov 26 15:56:36 2026 +0800
[chore](ci) Require approval and CI checks on master (#42)
* [chore](ci) Harden repository protections
* [chore](ci) Make review thread resolution optional
---
.asf.yaml | 34 +++++++++++++++++++++++++---
.github/{workflows/go.yml => dependabot.yml} | 28 +++++------------------
.github/workflows/go.yml | 12 +++++++---
.github/workflows/license-eyes.yml | 4 ++--
4 files changed, 48 insertions(+), 30 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 4dcd2f9..f0b0c43 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -43,14 +43,42 @@ github:
squash: true
merge: false
rebase: false
+ pull_requests:
+ del_branch_on_merge: true
+ dependabot_alerts: true
+ dependabot_updates: true
+ # Preserve the existing classic approval rule during ruleset rollout.
protected_branches:
master:
- required_status_checks:
- # if strict is true, means "Require branches to be up to date before
merging".
- strict: false
required_pull_request_reviews:
dismiss_stale_reviews: true
required_approving_review_count: 1
+ rulesets:
+ - name: Master branch protection
+ type: branch
+ branches:
+ includes:
+ - master
+ restrict_deletion: true
+ restrict_force_push: true
+ required_linear_history: true
+ required_pull_request_reviews:
+ dismiss_stale_reviews: true
+ require_last_push_approval: true
+ required_approving_review_count: 1
+ required_status_checks:
+ # 15368 is the GitHub Actions app ID reported by these checks.
+ - name: build
+ app_slug: 15368
+ - name: License Check
+ app_slug: 15368
+ - name: Release tag protection
+ type: tag
+ branches:
+ includes:
+ - '[0-9]*.[0-9]*.[0-9]*'
+ restrict_deletion: true
+ restrict_force_push: true
collaborators:
- freemandealer
- JackDrogon
diff --git a/.github/workflows/go.yml b/.github/dependabot.yml
similarity index 71%
copy from .github/workflows/go.yml
copy to .github/dependabot.yml
index a347bfa..0d99532 100644
--- a/.github/workflows/go.yml
+++ b/.github/dependabot.yml
@@ -15,26 +15,10 @@
# specific language governing permissions and limitations
# under the License.
#
----
-name: Go
-on:
- push:
- branches: [ "master" ]
- pull_request:
- branches: [ "master" ]
-
-jobs:
-
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - name: Set up Go
- uses: actions/setup-go@v4
- with:
- go-version: '1.20'
-
- - name: Build
- run: sh build.sh
+version: 2
+updates:
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index a347bfa..7c8231a 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -24,17 +24,23 @@ on:
pull_request:
branches: [ "master" ]
+permissions:
+ contents: read
+
jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up Go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: '1.20'
+ cache-dependency-path: go.sum
- name: Build
- run: sh build.sh
+ run: bash -e build.sh
diff --git a/.github/workflows/license-eyes.yml
b/.github/workflows/license-eyes.yml
index be6c97b..2711152 100644
--- a/.github/workflows/license-eyes.yml
+++ b/.github/workflows/license-eyes.yml
@@ -31,9 +31,9 @@ jobs:
name: "License Check"
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
with:
persist-credentials: false
- name: Check License
- uses: apache/[email protected]
+ uses: apache/skywalking-eyes@49d536241d6fe8f92400702b08710514dc298cd4
# v0.2.0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]