mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-22 06:05:38 -06:00
Add `on.workflow_dispatch`. See: * https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatch * https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# Lints and checks for potential issues in the profiles.
|
|
|
|
name: Check-Profiles
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
paths:
|
|
- 'ci/check/profiles/**'
|
|
- 'etc/**'
|
|
- .github/workflows/check-profiles.yml
|
|
- ci/printenv.sh
|
|
- contrib/sort.py
|
|
- src/firecfg/firecfg.config
|
|
pull_request:
|
|
paths:
|
|
- 'ci/check/profiles/**'
|
|
- 'etc/**'
|
|
- .github/workflows/check-profiles.yml
|
|
- ci/printenv.sh
|
|
- contrib/sort.py
|
|
- src/firecfg/firecfg.config
|
|
|
|
permissions: # added using https://github.com/step-security/secure-workflows
|
|
contents: read
|
|
|
|
jobs:
|
|
profile-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
|
|
with:
|
|
disable-sudo: true
|
|
egress-policy: block
|
|
allowed-endpoints: >
|
|
github.com:443
|
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
|
- name: print env
|
|
run: ./ci/printenv.sh
|
|
- run: python3 --version
|
|
|
|
# - name: sort.py
|
|
# run: >
|
|
# ./ci/check/profiles/sort.py
|
|
# etc/inc/*.inc etc/{profile-a-l,profile-m-z}/*.profile
|
|
# Currently broken (see #5610)
|
|
# - name: private-etc-always-required.sh
|
|
# run: >
|
|
# ./ci/check/profiles/private-etc-always-required.sh
|
|
# etc/inc/*.inc etc/{profile-a-l,profile-m-z}/*.profile
|
|
- name: sort-disable-programs.sh
|
|
run: >
|
|
./ci/check/profiles/sort-disable-programs.sh
|
|
etc/inc/disable-programs.inc
|
|
- name: sort-firecfg.config.sh
|
|
run: >
|
|
./ci/check/profiles/sort-firecfg.config.sh
|
|
src/firecfg/firecfg.config
|