Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ name: "CI jobs"
on:
workflow_call:

permissions:
contents: read

jobs:
changes:
runs-on: ubuntu-slim
permissions:
contents: read
pull-requests: read
outputs:
java: ${{ steps.filter.outputs.java }}
steps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ env:
MYSQL_DRIVER_CLASSNAME: com.mysql.jdbc.Driver # Used to set druid config in docker image for revised ITs
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5

permissions:
contents: read

jobs:
ci:
permissions:
contents: read
pull-requests: read
uses: ./.github/workflows/ci-jobs.yml

quality-gate:
Expand All @@ -50,6 +56,8 @@ jobs:

actions-timeline:
needs: [ci]
permissions:
actions: read
runs-on: ubuntu-24.04
if: ${{ !cancelled() }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cron-job-its.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}' # group workflows only on pull_requests and not on branch commits
cancel-in-progress: true

permissions:
contents: read

jobs:
security_vulnerabilities:
# Pull requests from forks get no secrets, and dependency-check fails without an NVD API key.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ name: "Docker Tests using Distribution Image"
on:
workflow_call:

permissions:
contents: read

jobs:
run-docker-tests:
name: Run Docker tests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
pull-requests: read

jobs:
conventional-commits:
if: github.repository == 'apache/druid' && github.event.pull_request.base.ref == 'master'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
schedule:
- cron: '0 0 * * *' # Run every day at midnight

permissions:
actions: write
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-24.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ env:
GITHUB_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
GITHUB_WORKFLOW_REF: ${{ github.workflow_ref }}

permissions:
contents: read

jobs:
execute:
name: "${{ inputs.key }}"
Expand Down
Loading