mirror of
https://github.com/emmansun/gmsm.git
synced 2025-08-28 19:23:16 +08:00
ci: add branch protection
This commit is contained in:
parent
2de1effe3c
commit
641a6fa205
3
.github/dependabot.yml
vendored
3
.github/dependabot.yml
vendored
@ -9,13 +9,16 @@ updates:
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
target-branch: develop
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: daily
|
||||
target-branch: develop
|
||||
|
||||
- package-ecosystem: docker
|
||||
directory: /internal/sm2ec/fiat
|
||||
schedule:
|
||||
interval: daily
|
||||
target-branch: develop
|
||||
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -2,9 +2,9 @@ name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
2
.github/workflows/licenses.yml
vendored
2
.github/workflows/licenses.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: Update License File
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ "develop" ]
|
||||
paths:
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -2,9 +2,9 @@ name: macOs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
2
.github/workflows/scorecard.yml
vendored
2
.github/workflows/scorecard.yml
vendored
@ -12,7 +12,7 @@ on:
|
||||
schedule:
|
||||
- cron: '32 2 * * 2'
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
# Declare default permissions as read only.
|
||||
permissions: read-all
|
||||
|
4
.github/workflows/test_ppc64.yaml
vendored
4
.github/workflows/test_ppc64.yaml
vendored
@ -5,9 +5,9 @@ name: ppc64le-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
4
.github/workflows/test_qemu.yml
vendored
4
.github/workflows/test_qemu.yml
vendored
@ -5,9 +5,9 @@ name: arm64-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
4
.github/workflows/test_riscv64.yaml
vendored
4
.github/workflows/test_riscv64.yaml
vendored
@ -5,9 +5,9 @@ name: riscv64-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
4
.github/workflows/test_s390x.yaml
vendored
4
.github/workflows/test_s390x.yaml
vendored
@ -5,9 +5,9 @@ name: s390x-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
4
.github/workflows/test_sm_ni.yml
vendored
4
.github/workflows/test_sm_ni.yml
vendored
@ -5,9 +5,9 @@ name: sm3-sm4-ni-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
Loading…
x
Reference in New Issue
Block a user