Skip to content

Commit

Permalink
make GitHub workflow permissions explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricvanrompay-datadog committed Jan 3, 2025
1 parent 7c367bb commit d2a3dac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: All builds
on: [push, pull_request]

permissions:
contents: read
packages: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Create release from new tag

# setting default permissions to "none"
# because permissions are set at the job level
permissions: {}

# this flow will be run only when new tags are pushed that match our pattern
on:
push:
Expand Down

0 comments on commit d2a3dac

Please sign in to comment.