Skip to content

Commit

Permalink
token permissions - security slam task 16
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Henries <[email protected]>
  • Loading branch information
dalehenries committed Dec 15, 2023
1 parent fd3cd41 commit 1fe8e08
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 1fe8e08

Please sign in to comment.