Add permissions to workflows
Some checks are pending
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Waiting to run

This commit is contained in:
Vladimir Dubrovin 2026-06-01 14:29:32 +03:00
parent fe2b2fd544
commit 9734b54f56
13 changed files with 48 additions and 9 deletions

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -2,10 +2,14 @@ name: C/C++ CI Linux
on: on:
push: push:
branches: [ "master" ]
paths: [ '**.c', '**.h', 'Makefile.Linux', '.github/configs', '.github/workflows/c-cpp-Linux.yml' ] paths: [ '**.c', '**.h', 'Makefile.Linux', '.github/configs', '.github/workflows/c-cpp-Linux.yml' ]
pull_request:
paths: [ "**.c", "**.h", "Makefile.Linux", ".github/configs", ".github/workflows/c-cpp-Linux.yml" ]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -2,10 +2,14 @@ name: C/C++ CI MacOS
on: on:
push: push:
branches: [ "master" ]
paths: [ '**.c', '**.h', 'Makefile.FreeBSD', '.github/configs', '.github/workflows/c-cpp-MacOS.yml' ] paths: [ '**.c', '**.h', 'Makefile.FreeBSD', '.github/configs', '.github/workflows/c-cpp-MacOS.yml' ]
pull_request:
paths: [ "**.c", "**.h", "Makefile.FreeBSD", ".github/configs", ".github/workflows/c-cpp-MacOS.yml" ]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -2,10 +2,14 @@ name: C/C++ CI Windows
on: on:
push: push:
branches: [ "master" ]
paths: [ '**.c', '**.h', 'Makefile.msvc', '.github/configs', '.github/workflows/c-cpp-Windows.yml' ] paths: [ '**.c', '**.h', 'Makefile.msvc', '.github/configs', '.github/workflows/c-cpp-Windows.yml' ]
pull_request:
paths: [ "**.c", "**.h", "Makefile.msvc", ".github/configs", ".github/workflows/c-cpp-Windows.yml" ]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -2,10 +2,14 @@ name: C/C++ CI cmake
on: on:
push: push:
branches: [ "master", "unix_socket" ]
paths: [ '**.c', '**.h', '**.cmake', 'CMakeLists.txt', '.github/configs', '.github/workflows/c-cpp-cmake.yml' ] paths: [ '**.c', '**.h', '**.cmake', 'CMakeLists.txt', '.github/configs', '.github/workflows/c-cpp-cmake.yml' ]
pull_request:
paths: [ "**.c", "**.h", "**.cmake", "CMakeLists.txt", ".github/configs", ".github/workflows/c-cpp-cmake.yml" ]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
ci: ci:
name: "${{ matrix.target }}" name: "${{ matrix.target }}"

View File

@ -5,6 +5,10 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
packages: write
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
@ -13,9 +17,6 @@ jobs:
build: build:
name: Build and push Docker images name: Build and push Docker images
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5

View File

@ -5,6 +5,9 @@ on:
types: [published] types: [published]
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
env: env:
REGISTRY: docker.io REGISTRY: docker.io
IMAGE_NAME: 3proxy/3proxy IMAGE_NAME: 3proxy/3proxy
@ -13,8 +16,6 @@ jobs:
build: build:
name: Build and push Docker images name: Build and push Docker images
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5