Skip to content

Commit

Permalink
Properly set workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bcodesido committed Dec 27, 2024
1 parent 4f4ceed commit 41b884a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on:
schedule:
- cron: "39 5 * * 1"

# Declare default permissions as read only.
permissions: read-all

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
coverage:
name: Run tests and generate coverage reports
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Lint C code

on: [push]

# Declare default permissions as read only.
permissions: read-all

jobs:
run-c-linter:
name: Run C linter
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Lint Python code

on: [push]

# Declare default permissions as read only.
permissions: read-all

jobs:
run-python-linter:
name: Run Python linter
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: "17 6 * * *"

# Declare default permissions as read only.
permissions: read-all

jobs:
run-unit-tests:
name: Unit tests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
static-analysis:
name: Run ledger static analysis
Expand Down

0 comments on commit 41b884a

Please sign in to comment.