Skip to content

Commit

Permalink
Added permissions to override repo/org settings w/ least privileges…
Browse files Browse the repository at this point in the history
… required for improved security (https://cwe.mitre.org/data/definitions/275.html)
  • Loading branch information
adamlui committed Jan 11, 2025
1 parent 822f3c3 commit 2c851d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint-on-push-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint pushes + PRs
on: [push, pull_request]

permissions:
contents: read

jobs:

js-json-md-yaml-lint:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sync-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
paths: ["**", "!.*"]

permissions:
contents: read

jobs:
build:
if: (github.repository == 'KudoAI/duckduckgpt') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
Expand Down

0 comments on commit 2c851d0

Please sign in to comment.