Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 [StepSecurity] ci: Harden GitHub Actions #305

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/doc-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
verify:
name: verify
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ env:
GO_VERSION: '1.20'
GO_REQUIRED_MIN_VERSION: ''

permissions:
contents: read

jobs:
e2e:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ env:
GO_VERSION: '1.20'
GO_REQUIRED_MIN_VERSION: ''

permissions:
contents: read

jobs:
coverage:
name: coverage
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request_target:
types: [opened, edited, reopened, synchronize]

permissions:
contents: read

jobs:
verify:
name: verify PR contents
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ env:
GO_VERSION: '1.20'
GO_REQUIRED_MIN_VERSION: ''

permissions:
contents: read

jobs:
verify:
name: verify
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/releaseimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ defaults:
run:
working-directory: go/src/open-cluster-management.io/ocm

permissions:
contents: read

jobs:
env:
name: prepare release env
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading