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
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
ci: add minimum GitHub token permissions for workflows
Signed-off-by: Ashish Kurmi <[email protected]>
ashishkurmi committed Oct 2, 2022
commit 064ebe331aba3c7a1c39ddcc59343b8d9c8450f7
3 changes: 3 additions & 0 deletions .github/workflows/async-history.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/db2.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/docker-release-with-latest.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@ name: Release Docker Images

on: workflow_dispatch

permissions:
contents: read

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

on: [push]

permissions:
contents: read

jobs:
test_jdk:
name: Flowable 5 Tests
5 changes: 5 additions & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .github/workflows/java-ea.yml
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 }})
3 changes: 3 additions & 0 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/sql-server.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -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'