aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/profile-checks.yml
blob: 144d5232762740f6836838682036af572000bb99 (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
40
41
42
43
44
45
name: Profile Checks

on:
  push:
    branches: [ master ]
    paths:
      - 'ci/check/profiles/**'
      - 'etc/**'
      - .github/workflows/profile-checks.yml
      - contrib/sort.py
      - src/firecfg/firecfg.config
  pull_request:
    branches: [ master ]
    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@03bee3930647ebbf994244c21ddbc0d4933aab4f
      with:
        disable-sudo: true
        egress-policy: block
        allowed-endpoints: >
          github.com:443

    - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
#   - 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