Skip to content

Commit

Permalink
fix(ci): apply seccomp profile to run tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
buzztaiki committed Jun 1, 2022
1 parent d4e8a04 commit 58ca1eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/seccomp-profile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"names": [
"personality"
],
"action": "SCMP_ACT_ALLOW",
"args": [
{
"index": 0,
"value": 262144,
"valueTwo": 0,
"op": "SCMP_CMP_EQ"
}
],
"comment": "Enable personality(ADDR_NO_RANDOMIZE) syscall",
"includes": {},
"excludes": {}
}
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
- archlinux:base-devel
- ubuntu:22.04
runs-on: ubuntu-latest
container: ${{ matrix.runner-image }}
container:
image: ${{ matrix.runner-image }}
options: --security-opt seccomp=.github/seccomp-profile.json

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 58ca1eb

Please sign in to comment.