Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security: add permissions block to workflows #1136

Merged
merged 5 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/addToProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
env:
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}

permissions:
contents: read

jobs:
assign_one_project:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: build-packages
on:
workflow_call: ~

permissions:
contents: read
reakaleek marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build-packages:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: build
on:
workflow_call: ~

permissions:
contents: read
reakaleek marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:
name: build-agent-library
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/generate-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
description: "The matrix"
value: ${{ jobs.generate-matrix.outputs.include }}

permissions:
contents: read

jobs:
generate-matrix:
timeout-minutes: 5
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request_target:
types: [opened]

permissions:
contents: read
reakaleek marked this conversation as resolved.
Show resolved Hide resolved
issues: write
pull-requests: write

jobs:
triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
required: false
type: string

permissions:
contents: read
reakaleek marked this conversation as resolved.
Show resolved Hide resolved

jobs:
test-packages:
timeout-minutes: 120
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- test
types: [completed]

permissions:
contents: read
actions: read
reakaleek marked this conversation as resolved.
Show resolved Hide resolved
checks: write

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