You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2022/10/03 15:03:31 UTC
[nifi] branch main updated: NIFI-10575 Added minimum GitHub token permissions for workflows
This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new c9ade4802c NIFI-10575 Added minimum GitHub token permissions for workflows
c9ade4802c is described below
commit c9ade4802c80de4fe2a6ede237108c6b5d1f321c
Author: Ashish Kurmi <ak...@stepsecurity.io>
AuthorDate: Sun Oct 2 11:29:06 2022 -0700
NIFI-10575 Added minimum GitHub token permissions for workflows
This closes #6469
Signed-off-by: David Handermann <ex...@apache.org>
Co-authored-by: Ashish Kurmi <ak...@stepsecurity.io>
Co-authored-by: Alex <al...@gmail.com>
---
.github/workflows/ci-workflow.yml | 3 +++
.github/workflows/stale.yml | 6 ++++++
.github/workflows/system-tests.yml | 3 +++
3 files changed, 12 insertions(+)
diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml
index d71b26d08e..bbdf6f5bee 100644
--- a/.github/workflows/ci-workflow.yml
+++ b/.github/workflows/ci-workflow.yml
@@ -49,6 +49,9 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
+permissions:
+ contents: read
+
jobs:
static-analysis:
timeout-minutes: 30
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 89d6b2ab16..fe7cb6a872 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -20,8 +20,14 @@ on:
schedule:
- cron: "0 0 * * *"
+permissions:
+ contents: read
+
jobs:
stale:
+ permissions:
+ issues: write # for actions/stale to close stale issues
+ pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml
index 1bfc6ff32a..42a939530c 100644
--- a/.github/workflows/system-tests.yml
+++ b/.github/workflows/system-tests.yml
@@ -52,6 +52,9 @@ env:
-pl nifi-system-tests/nifi-system-test-suite
-pl nifi-system-tests/nifi-stateless-system-test-suite
+permissions:
+ contents: read
+
jobs:
ubuntu-17:
timeout-minutes: 120