Skip to content

Commit

Permalink
setting permissions to remove security warning (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
makrsmark authored Jan 26, 2025
1 parent d56534d commit 3484ac9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Grype CI
on:
workflow_dispatch:
push:

permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Publish Package to npmjs
on:
release:
types: [published]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/yarn-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
build:

Expand Down

0 comments on commit 3484ac9

Please sign in to comment.