Skip to content

Commit 66fb8d5

Browse files
committed
ci: scan secret-provider-agent
1 parent 7fa63b7 commit 66fb8d5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: secret-provider-agent scanning
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'cvmassistants/secretprovider/secret-provider-agent/src/secret_provider_agent.c'
7+
workflow_dispatch:
8+
9+
jobs:
10+
scan-secret-provider-agent:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Update system and install packages
16+
run: sudo apt update && sudo apt install -y clang-format cppcheck # for formatting and static analysis
17+
18+
- name: secret-provider-agent formatting
19+
working-directory: cvmassistants/secretprovider/secret-provider-agent/src
20+
run: clang-format --dry-run -style=llvm --Werror secret_provider_agent.c
21+
22+
- name: secret-provider-agent static analysis
23+
working-directory: cvmassistants/secretprovider/secret-provider-agent/src
24+
# enable all checks and suppress missing include system since RATS-TLS dependencies are not included in the repo
25+
run: cppcheck --enable=all --suppress=missingIncludeSystem --error-exitcode=1 secret_provider_agent.c
26+

0 commit comments

Comments
 (0)