Skip to content

Commit

Permalink
Restrict github action workflow permissions (#647)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton authored Jan 11, 2024
1 parent 1b4159e commit c072f3e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches: [ main ]
paths: [ 'lambda/**' ]

permissions:
contents: read

jobs:
test:
name: Testing
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [ published ]

permissions:
contents: read

jobs:
docs:
name: Documentation Deployment
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches: [ main ]
paths: [ '**.md' ]

permissions:
contents: read

jobs:
markdown:
name: Markdown Linting
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/localization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ on:
branches: [ main ]
paths: [ 'resources/locales/**' ]

permissions:
contents: read

jobs:
update:
name: Locale Updates
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
type: choice
options: [ major, minor, patch, premajor, preminor, prepatch, prerelease ]

permissions:
contents: read

jobs:
pkg-update:
name: Package Version Update
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ on:
schedule:
- cron: '42 1 1 * *' # Every first day of the month at 1:42

permissions:
contents: read

jobs:
codeql:
name: Code Scanning
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit c072f3e

Please sign in to comment.