Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
license-check:
name: License Check
uses: ./.github/workflows/license_check.yml

pin-check:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
name: Pin Check
uses: ./.github/workflows/pin_check.yml
Comment thread
stephen-derosa marked this conversation as resolved.

build:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Comment thread
stephen-derosa marked this conversation as resolved.
strategy:
fail-fast: false
matrix:
Expand All @@ -25,10 +33,12 @@

name: Build (${{ matrix.name }})
runs-on: ${{ matrix.os }}
permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

# ---------- deps ----------
- name: Install deps (Ubuntu)
Expand Down Expand Up @@ -68,7 +78,7 @@

- name: Setup MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
arch: x64

Expand Down Expand Up @@ -159,7 +169,7 @@

# ---------- upload build output ----------
- name: Upload binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: basic_room-${{ matrix.name }}
path: |
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2026 LiveKit, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: License Check
on:
workflow_call: {}
workflow_dispatch: {}

jobs:
license-check:
name: License Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Check License Headers
shell: bash
run: |
shopt -s globstar
# ghcr.io/google/addlicense v1.2.0
docker run --rm -v ${PWD}:/src -w /src ghcr.io/google/addlicense@sha256:5a48f41ccc8cf3fdd04499649f02a9ee5877ab6f39fd1ac18fd1db5eb1062c5a \
Comment thread
stephen-derosa marked this conversation as resolved.
Outdated
-check \
-l apache \
-c "LiveKit, Inc." \
Comment thread
stephen-derosa marked this conversation as resolved.
Outdated
**/*.{cpp,h,hpp}
32 changes: 32 additions & 0 deletions .github/workflows/pin_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2026 LiveKit, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Pin Check
on:
workflow_call: {}
workflow_dispatch:

jobs:
pin-check:
name: Pin Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Pin Check
uses: suzuki-shunsuke/pinact-action@cf51507d80d4d6522a07348e3d58790290eaf0b6 # v2.0.0
with:
skip_push: true
Loading