mirror of
https://github.com/emmansun/gmsm.git
synced 2025-08-28 11:13:17 +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
|
||||
|
20
.github/workflows/test_ppc64.yaml
vendored
20
.github/workflows/test_ppc64.yaml
vendored
@ -5,13 +5,13 @@ name: ppc64le-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
@ -22,11 +22,11 @@ jobs:
|
||||
ppc64: [power8]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||
with:
|
||||
|
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
|
||||
|
20
.github/workflows/test_riscv64.yaml
vendored
20
.github/workflows/test_riscv64.yaml
vendored
@ -5,13 +5,13 @@ name: riscv64-qemu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: [ "develop", "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
@ -21,11 +21,11 @@ jobs:
|
||||
arch: [riscv64]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Harden the runner (Audit all outbound calls)
|
||||
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||
with:
|
||||
|
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