Skip to content

Commit 46671f6

Browse files
committed
ci: add Obfuscan workflow for pull requests
1 parent eeb9d8f commit 46671f6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ on:
1414
- '!**/*.md'
1515
workflow_dispatch:
1616
jobs:
17+
obfuscan:
18+
if: github.event_name == 'pull_request'
19+
name: Obfuscan
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
pull-requests: read
24+
issues: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
29+
- name: Scan PR diff
30+
uses: ByteBardOrg/obfuscan-action@v1
31+
with:
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
fail-on: block
34+
1735
build:
1836

1937
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)