[llvm] [GitHub] Set top level token permission (PR #87326)

Marius Brehler via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 01:58:26 PDT 2024


https://github.com/marbre created https://github.com/llvm/llvm-project/pull/87326

None

>From 2c8af7f0bf80b4cfdbbd7ec2757b1917c4e840a8 Mon Sep 17 00:00:00 2001
From: Marius Brehler <marius.brehler at iml.fraunhofer.de>
Date: Tue, 2 Apr 2024 08:56:32 +0000
Subject: [PATCH] [GitHub] Set top level token permission

---
 .github/workflows/pr-code-format.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml
index 10b18f245d8965..983838858ba43e 100644
--- a/.github/workflows/pr-code-format.yml
+++ b/.github/workflows/pr-code-format.yml
@@ -1,4 +1,8 @@
 name: "Check code formatting"
+
+permissions:
+  contents: read
+
 on:
   pull_request:
     branches:



More information about the llvm-commits mailing list