Skip to content

Commit

Permalink
Merge pull request #2279 from dalehenries/token-permissions
Browse files Browse the repository at this point in the history
ci: token permissions - security slam task 16
  • Loading branch information
k8s-ci-robot authored Dec 15, 2023
2 parents a73ae3d + 1fe8e08 commit 39ffa00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
env:
GO_VERSION: "^1.21"

permissions:
contents: read

jobs:
ci-security-checks:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ on:
- edited
- synchronize

permissions:
contents: read

jobs:
main:
permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
name: Validate PR title for semantic commit message
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 39ffa00

Please sign in to comment.