Skip to content

Commit

Permalink
Set top-level and job-level permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623-cargosense committed Mar 4, 2024
1 parent c26efe5 commit 8cc2a86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
branches: [main]
workflow_dispatch:

permission:
contents: read

jobs:
lint:
permissions:
contents: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
options:
- "v1"

permissions:
contents: write

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

0 comments on commit 8cc2a86

Please sign in to comment.