Skip to content

Commit

Permalink
fix: ensure safer workflow permissions (CKV2_GHA_1)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Larson <[email protected]>
  • Loading branch information
LucasLarson committed Apr 27, 2024
1 parent f4eba15 commit 116b5f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read

# cancel any in-progress job or run
concurrency:
group: ${{ github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/jsonlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
format-json:
name: Format JSON files and create a pull request
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/shellcheck-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: Shellcheck code in Markdown
on:
push:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 116b5f3

Please sign in to comment.