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

ci: add minimum GitHub token permissions for workflows #3478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .github/workflows/async-history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_async:
name: Async History ${{ matrix.engineModule }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/db2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_db2:
name: DB2 ${{ matrix.db2 }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-release-with-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release Docker Images With Latest

on: workflow_dispatch

permissions:
contents: read

jobs:
release_docker_images_with_latest:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release Docker Images

on: workflow_dispatch

permissions:
contents: read

jobs:
release_docker_images:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/flowable5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Flowable 5 Build

on: [push]

permissions:
contents: read

jobs:
test_jdk:
name: Flowable 5 Tests
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on:
branches:
- flowable-helm

permissions:
contents: read

jobs:
release:
permissions:
contents: write # for helm/chart-releaser-action to push chart release and create a release
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/java-ea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_jdkea:
name: Linux (OpenJDK EA)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_jdk:
name: Linux (JDK ${{ matrix.java }})
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

# We explicitly don't use a container for running the job since there is some connectivity issues to MariaDB if that is done
permissions:
contents: read

jobs:
test_mariadb:
name: MariaDB ${{ matrix.mariadb }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

# We explicitly don't use a container for running the job since there is some connectivity issues to MySQL if that is done
permissions:
contents: read

jobs:
test_mysql:
name: MySQL ${{ matrix.mysql }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_oracle:
name: Oracle ${{ matrix.oracle }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_postgres:
name: Postgres ${{ matrix.postgres }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sql-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ env:
-B -V --no-transfer-progress
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
test_mssql:
name: SQL Server ${{ matrix.mssql }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ env:
-B -V --no-transfer-progress
-D http.keepAlive=false -D maven.wagon.http.pool=false -D maven.wagon.httpconnectionManager.ttlSeconds=120

permissions:
contents: read

jobs:
windows:
name: 'Windows'
Expand Down