aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/profile-checks.yml
blob: 17e75668569e9458215018c59633a22d4e2caa61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Profile Checks

on:
  push:
    branches: [ master ]
    paths:
      - 'ci/check/profiles/**'
      - 'etc/**'
      - contrib/sort.py
      - src/firecfg/firecfg.config
  pull_request:
    branches: [ master ]
    paths:
      - 'ci/check/profiles/**'
      - 'etc/**'
      - 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@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
      with:
        egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

    - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
    - name: sort.py
      run: ./ci/check/profiles/sort.py etc/inc/*.inc etc/{profile-a-l,profile-m-z}/*.profile
    - 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