mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-13 20:58:11 +00:00
[StepSecurity] ci: Harden GitHub Actions (#305)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
This commit is contained in:
5
.github/workflows/dco.yml
vendored
5
.github/workflows/dco.yml
vendored
@@ -5,8 +5,13 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dco_check:
|
||||
permissions:
|
||||
pull-requests: read # for tim-actions/get-pr-commits to get list of commits from the PR
|
||||
runs-on: ubuntu-latest
|
||||
name: DCO Check
|
||||
steps:
|
||||
|
||||
3
.github/workflows/doc-only.yml
vendored
3
.github/workflows/doc-only.yml
vendored
@@ -12,6 +12,9 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
name: verify
|
||||
|
||||
3
.github/workflows/e2e.yml
vendored
3
.github/workflows/e2e.yml
vendored
@@ -16,6 +16,9 @@ env:
|
||||
GO_VERSION: '1.20'
|
||||
GO_REQUIRED_MIN_VERSION: ''
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/post.yml
vendored
3
.github/workflows/post.yml
vendored
@@ -16,6 +16,9 @@ env:
|
||||
GO_VERSION: '1.20'
|
||||
GO_REQUIRED_MIN_VERSION: ''
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
coverage:
|
||||
name: coverage
|
||||
|
||||
3
.github/workflows/pr-verify.yml
vendored
3
.github/workflows/pr-verify.yml
vendored
@@ -8,6 +8,9 @@ on:
|
||||
pull_request_target:
|
||||
types: [opened, edited, reopened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
name: verify PR contents
|
||||
|
||||
3
.github/workflows/pre.yml
vendored
3
.github/workflows/pre.yml
vendored
@@ -16,6 +16,9 @@ env:
|
||||
GO_VERSION: '1.20'
|
||||
GO_REQUIRED_MIN_VERSION: ''
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
name: verify
|
||||
|
||||
3
.github/workflows/releaseimage.yml
vendored
3
.github/workflows/releaseimage.yml
vendored
@@ -15,6 +15,9 @@ defaults:
|
||||
run:
|
||||
working-directory: go/src/open-cluster-management.io/ocm
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
env:
|
||||
name: prepare release env
|
||||
|
||||
6
.github/workflows/stable.yaml
vendored
6
.github/workflows/stable.yaml
vendored
@@ -5,8 +5,14 @@ on:
|
||||
|
||||
# `stable` label will be added to issues and PRs that have been inactive for 120 days
|
||||
# Close stale issues and PRs after 14 days of inactivity
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write # for actions/stale to close stale issues
|
||||
pull-requests: write # for actions/stale to close stale PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v8
|
||||
|
||||
Reference in New Issue
Block a user