Repository: identique/idnumbers (language: python)

Issue:
[BUG] warnings in the action and copy labels is not working
warning: https://github.com/identique/idnumbers/actions/runs/4059896017
error: https://github.com/identique/idnumbers/actions/runs/4059896019/jobs/6988440726



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/copy-labels-to-pr.yml b/.github/workflows/copy-labels-to-pr.yml
index c28bfd5d..d8edf519 100644
--- a/.github/workflows/copy-labels-to-pr.yml
+++ b/.github/workflows/copy-labels-to-pr.yml
@@ -3,6 +3,11 @@ on:
   pull_request:
     types: [opened]
 
+permissions:
+  contents: read
+  issues: write
+  pull-requests: write
+
 jobs:
   copy-labels:
     runs-on: ubuntu-latest


Test patch:
diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml
index d9483f14..2ce8d88f 100644
--- a/.github/workflows/python-test.yml
+++ b/.github/workflows/python-test.yml
@@ -20,7 +20,7 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - name: Set up Python 3.9
-      uses: actions/setup-python@v3
+      uses: actions/setup-python@v4
       with:
         python-version: "3.9"
     - name: Install dependencies