Skip to content

Remove warning about deprecated config value in Matrix RTC SFU. #1150

Remove warning about deprecated config value in Matrix RTC SFU.

Remove warning about deprecated config value in Matrix RTC SFU. #1150

Workflow file for this run

# Copyright 2025 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-only
name: GitHub Actions linting
on:
pull_request_target:
push:
branches:
- main
workflow_dispatch:
jobs:
action-validator:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install action-validator with asdf
uses: asdf-vm/actions/install@1902764435ca0dd2f3388eea723a4f92a4eb8302 # v4
with:
tool_versions: |
action-validator 0.6.0
- name: Lint Actions
run: |
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) -print0 \
| xargs -0 -I {} action-validator --verbose {}
actionlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check workflow files
uses: docker://rhysd/actionlint@sha256:887a259a5a534f3c4f36cb02dca341673c6089431057242cdc931e9f133147e9 # 1.7.7
with:
args: -color
pinned-actions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Find unpinned actions
run: |
# Find all actions that aren't docker images by digest or aren't GitHub commits by id
# All with digest/commit ids also need comments
unpinned_actions=$(
find .github/workflows -type f \( -iname \*.yaml -o -iname \*.yml \) -print0 \
| xargs -0 -I {} grep -E 'use[s]:' {} \
| grep -vE 'use[s]:\s+docker://[^#]*@sha256:[a-f0-9]{64}\s+#\s' \
| grep -vE 'use[s]:\s+[^#]*@[a-f0-9]{40}\s+#\s' || true)
if [ "$unpinned_actions" != "" ]; then
echo "There are unpinned actions:"
echo "$unpinned_actions"
exit 1
fi