Browse code

build: harden pull_request.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com>

Alex authored on 20/09/2022 15:12:22 • Victor Seva committed on 21/09/2022 07:29:31
Showing 1 changed files
... ...
@@ -6,6 +6,8 @@ name: checks_pr
6 6
       - master
7 7
   # Allows you to run this workflow manually from the Actions tab
8 8
   workflow_dispatch:
9
+permissions:
10
+  contents: read # to fetch code (actions/checkout)
9 11
 jobs:
10 12
   build:
11 13
     runs-on: ubuntu-latest
Browse code

github: use different file to define PR checks [skip ci]

Victor Seva authored on 04/07/2022 07:25:38
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+---
2
+name: checks_pr
3
+'on':
4
+  pull_request:
5
+    branches:
6
+      - master
7
+  # Allows you to run this workflow manually from the Actions tab
8
+  workflow_dispatch:
9
+jobs:
10
+  build:
11
+    runs-on: ubuntu-latest
12
+    container:
13
+      image: kamailio/pkg-kamailio-docker:master-${{ matrix.distribution }}
14
+      volumes:
15
+        - ${{ github.workspace }}:/code
16
+      env:
17
+        DIST: ${{ matrix.distribution }}
18
+        CC: ${{ matrix.compilier }}
19
+    strategy:
20
+      matrix:
21
+        include:
22
+          - distribution: bullseye
23
+            compilier: gcc
24
+          - distribution: bullseye
25
+            compilier: clang
26
+    steps:
27
+      - uses: actions/checkout@v2
28
+      - uses: ammaraskar/gcc-problem-matcher@0.1
29
+      - name: build
30
+        run: |
31
+          cd /code
32
+          ./test/travis/build_travis.sh
33
+        shell: bash