diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b984852..92d16d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a72fc1b..1763cef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,10 @@ name: Publish Package to npmjs on: release: types: [published] + +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/yarn-test.yml b/.github/workflows/yarn-test.yml index 141460b..62d5e16 100644 --- a/.github/workflows/yarn-test.yml +++ b/.github/workflows/yarn-test.yml @@ -7,6 +7,9 @@ on: - main pull_request: +permissions: + contents: read + jobs: build: