[pgjdbc/pgjdbc] e3f21b: chore: set "read" permissions for GitHub actions

From: Vladimir Sitnikov <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] e3f21b: chore: set "read" permissions for GitHub actions
Date: 2022-06-10 08:25:39
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/2a0df3-0eb45c@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: e3f21bf9472d138e2feb1324ed3d9e23f6645f23
https://github.com/pgjdbc/pgjdbc/commit/e3f21bf9472d138e2feb1324ed3d9e23f6645f23
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2022-06-10 (Fri, 10 Jun 2022)

Changed paths:
M .github/workflows/buildcache.yml
M .github/workflows/debezium.yml
M .github/workflows/fedora-copr-build.yml
M .github/workflows/main.yml
M .github/workflows/nightlysnapshot.yml
M .github/workflows/omni.yml

Log Message:
-----------
chore: set "read" permissions for GitHub actions

Restrict the GitHub token permissions only to the required ones;
this way, even if the attackers will succeed in compromising your workflow,
they won’t be able to do much.

See
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Commit: 0eb45c3120ff2eed01683c20de4eeeaa5777a44a
https://github.com/pgjdbc/pgjdbc/commit/0eb45c3120ff2eed01683c20de4eeeaa5777a44a
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2022-06-10 (Fri, 10 Jun 2022)

Changed paths:
M CHANGELOG.md

Log Message:
-----------
doc: add release notes regarding CI security fixes

Compare: https://github.com/pgjdbc/pgjdbc/compare/2a0df3cb9ef8...0eb45c3120ff

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2022-06-10 09:07:06 [pgjdbc/pgjdbc] 2151d8: chore: skip publishing pgjdbc-osgi-test to Central
Previous Message Vladimir Sitnikov 2022-06-10 06:48:47 [pgjdbc/pgjdbc] 2a0df3: chore: add gradle/wrapper-validation-action