mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
feat: harden permissions for all github workflows
Signed-off-by: Joyce Brum <joycebrum@google.com> Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D144119
This commit is contained in:
parent
c0b4ca107a
commit
829b8912cd
3
.github/workflows/clang-tests.yml
vendored
3
.github/workflows/clang-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: Clang Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
6
.github/workflows/closed-issues.yml
vendored
6
.github/workflows/closed-issues.yml
vendored
@ -3,8 +3,14 @@ on:
|
||||
issues:
|
||||
types: ['closed']
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
automate-issues-labels:
|
||||
permissions:
|
||||
issues: write # for andymckay/labeler to label issues
|
||||
pull-requests: write # for andymckay/labeler to label PRs
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'llvm/llvm-project'
|
||||
steps:
|
||||
|
3
.github/workflows/issue-release-workflow.yml
vendored
3
.github/workflows/issue-release-workflow.yml
vendored
@ -14,6 +14,9 @@
|
||||
|
||||
name: Issue Release Workflow
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types:
|
||||
|
3
.github/workflows/issue-subscriber.yml
vendored
3
.github/workflows/issue-subscriber.yml
vendored
@ -5,6 +5,9 @@ on:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
auto-subscribe:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/libclang-abi-tests.yml
vendored
3
.github/workflows/libclang-abi-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: libclang ABI Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
3
.github/workflows/libclc-tests.yml
vendored
3
.github/workflows/libclc-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: libclc Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
3
.github/workflows/lld-tests.yml
vendored
3
.github/workflows/lld-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: LLD Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
3
.github/workflows/lldb-tests.yml
vendored
3
.github/workflows/lldb-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: lldb Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
4
.github/workflows/llvm-bugs.yml
vendored
4
.github/workflows/llvm-bugs.yml
vendored
@ -1,5 +1,9 @@
|
||||
name: LLVM Bugs notifier
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: read
|
||||
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
|
3
.github/workflows/llvm-project-tests.yml
vendored
3
.github/workflows/llvm-project-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: LLVM Project Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
|
3
.github/workflows/llvm-tests.yml
vendored
3
.github/workflows/llvm-tests.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: LLVM Tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
6
.github/workflows/new-issues.yml
vendored
6
.github/workflows/new-issues.yml
vendored
@ -3,8 +3,14 @@ on:
|
||||
issues:
|
||||
types: ['opened']
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
automate-issues-labels:
|
||||
permissions:
|
||||
issues: write # for andymckay/labeler to label issues
|
||||
pull-requests: write # for andymckay/labeler to label PRs
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'llvm/llvm-project'
|
||||
steps:
|
||||
|
5
.github/workflows/release-tasks.yml
vendored
5
.github/workflows/release-tasks.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: Release Task
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@ -8,6 +11,8 @@ on:
|
||||
|
||||
jobs:
|
||||
release-tasks:
|
||||
permissions:
|
||||
contents: write # To upload assets to release.
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'llvm/llvm-project'
|
||||
steps:
|
||||
|
3
.github/workflows/version-check.yml
vendored
3
.github/workflows/version-check.yml
vendored
@ -8,6 +8,9 @@ on:
|
||||
branches:
|
||||
- 'release/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
version_check:
|
||||
if: github.repository_owner == 'llvm'
|
||||
|
Loading…
Reference in New Issue
Block a user