From 9569ed96a6dfe04800d91fd152e059ce6943d942 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 24 Sep 2025 11:00:19 -0500 Subject: [PATCH 1/2] Add token permissions to workflow with Autoupdate pre-commit --- .github/workflows/pre-commit-autoupdate.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index e206a00154e..aef5e16daad 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -8,6 +8,8 @@ on: schedule: - cron: '28 2 * * 6' # Saturday at 02:28 UTC +permissions: read-all + jobs: autoupdate: name: Autoupdate @@ -15,6 +17,11 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 + permissions: + # Needed to create a PR with autoupdate changes + contents: write + pull-requests: write + steps: - name: Checkout DPNP repo uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 From 96ea8965d08eb6f3b0c6f91e7a50890a5b5ec565 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 24 Sep 2025 11:10:55 -0500 Subject: [PATCH 2/2] Add PR to the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f1fefda3e..d543dc56d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Resolved the issue in `dpnp.random` functions to allow any value of `size` where each element is castable to `Py_ssize_t` type [#2578](https://github.com/IntelPython/dpnp/pull/2578) * Resolved `conda build --test` issue in python 3.9 environment [#2583](https://github.com/IntelPython/dpnp/pull/2583) * Fixed tests for the rounding functions to depend on minimum required numpy version [#2589](https://github.com/IntelPython/dpnp/pull/2589) +* Added missing permission definition in `Autoupdate pre-commit` GitHub workflow [#2591](https://github.com/IntelPython/dpnp/pull/2591) ### Security