Revert "build: harden GitHub workflow permissions"
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 16:05:51 +0000 (17:05 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 16:36:57 +0000 (17:36 +0100)
This reverts commit 008e9a335dc32c4662aa56eb67487ddd777f2147.

We now have the full CI backported to openwrt-22.03. We need to revert
this subset and apply the full backport commit.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/formal.yml
.github/workflows/labeler.yml
.github/workflows/tools.yml

index 8df31d1751f4ca7ba20df268b2211572e3a9c3b4..26bcc74542982d1b97ada1d506d90edeeb6c8e99 100644 (file)
@@ -3,9 +3,6 @@ name: Test Formalities
 on:
   pull_request:
 
-permissions:
-  contents: read
-
 jobs:
   build:
     name: Test Formalities
index 5f82b88a50a7dc5e7e5e4ab82c04b2bccfeab36f..5eecf6902388c298e933432f1958554406ba590b 100644 (file)
@@ -2,15 +2,8 @@ name: 'Pull Request Labeler'
 on:
   - pull_request_target
 
-permissions:
-  contents: read
-
 jobs:
   labeler:
-    permissions:
-      contents: read # to determine modified files (actions/labeler)
-      pull-requests: write # to add labels to PRs (actions/labeler)
-
     name: Pull Request Labeler
     runs-on: ubuntu-latest
     steps:
index f48361536362c32a6a6c383c7b36fe6def607c30..39adac5beb84a8582b79ad9ceb4168c6e0296abe 100644 (file)
@@ -10,9 +10,6 @@ on:
       - 'tools/**'
       - '.github/workflows/tools.yml'
 
-permissions:
-  contents: read
-
 jobs:
   build-macos-latest:
     if: github.event_name != 'push'