build: use ASCII sort on firecfg and check for duplicates #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Profile Checks | |
on: | |
push: | |
paths: | |
- 'ci/check/profiles/**' | |
- 'etc/**' | |
- .github/workflows/profile-checks.yml | |
- contrib/sort.py | |
- src/firecfg/firecfg.config | |
pull_request: | |
paths: | |
- 'ci/check/profiles/**' | |
- 'etc/**' | |
- .github/workflows/profile-checks.yml | |
- 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@cba0d00b1fc9a034e1e642ea0f1103c282990604 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
github.com:443 | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- 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 |