Skip to content

Commit b79d6bb

Browse files
committed
feat: add Obfuscan workflow for pull requests
Adds a new job named Obfuscan to the CI workflow to scan the pull request diff using the ByteBardOrg/obfuscan-action. This job runs only when a pull request is opened, and it uses the head SHA of the pull request to check for potential issues in the code changes before the main build proceeds.
1 parent eeb9d8f commit b79d6bb

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ 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+
fail-on: block
33+
1734
build:
1835

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

0 commit comments

Comments
 (0)