Skip to content

Commit

Permalink
ci: Minimize permissions to workflows
Browse files Browse the repository at this point in the history
Reduces the permissions available to GitHub Workflows
to read-only since they don't do much otherwise.

Resolves #76
  • Loading branch information
abhinav committed Mar 20, 2023
1 parent faff69d commit 457934a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: FOSSA Analysis
on: push

permissions:
contents: read

jobs:

build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: ['*']

permissions:
contents: read

jobs:

build:
Expand Down

0 comments on commit 457934a

Please sign in to comment.