mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-28 00:24:19 +00:00
a133282fc3
Add a top-level `permissions: contents: read` block so the smoke-test workflow no longer inherits the repository default token permissions. Resolves CodeQL actions/missing-workflow-permissions.
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Deploy Smoke Tests
|
|
|
|
# Container smoke tests for the unattended install path and first-boot
|
|
# credential generation. Runs only when the install/deploy assets change.
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "install.sh"
|
|
- "deploy/**"
|
|
- ".github/workflows/smoke.yml"
|
|
pull_request:
|
|
paths:
|
|
- "install.sh"
|
|
- "deploy/**"
|
|
- ".github/workflows/smoke.yml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
noninteractive-install:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runner: [ubuntu-latest, ubuntu-24.04-arm]
|
|
runs-on: ${{ matrix.runner }}
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Non-interactive install smoke test
|
|
run: bash deploy/test/smoke-noninteractive.sh
|
|
|
|
first-boot:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runner: [ubuntu-latest, ubuntu-24.04-arm]
|
|
runs-on: ${{ matrix.runner }}
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: First-boot credential smoke test
|
|
run: bash deploy/test/smoke-firstboot.sh
|