File: pull_request.yml

package info (click to toggle)
checksec 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 10,936 kB
  • sloc: sh: 1,882; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: docker-compose-test
on: pull_request
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: render-checksec
        run: |
          pip install pre-commit
          mkdir ${HOME}/bin
          curl -Lo ${HOME}/bin/shfmt https://github.com/mvdan/sh/releases/download/v3.4.0/shfmt_v3.4.0_linux_amd64
          chmod +x ${HOME}/bin/shfmt
          export PATH=${PATH}:${HOME}/bin
          pre-commit run --all-files
          git status
          if [[ ! -z $(git status --porcelain) ]]; then
            echo "source file differs, checksec needs build"
            exit 1
          fi
      - name: ubuntu checksec
        run: docker-compose run checksec-ubuntu
      - name: photon checksec
        run: docker-compose run checksec-photon