Skip to content

Commit

Permalink
use action in validation repo
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>
  • Loading branch information
VincyZhang committed Nov 22, 2024
1 parent cfc09c8 commit d9560d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/_get-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ jobs:

- name: Check Dangerous Command Injection
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
run: |
export WORKSPACE=${{ github.workspace }}
cd ${{ github.workspace }}
bash .github/workflows/scripts/check_cmd_injection.sh
uses: opea-project/validation/actions/check_cmd@add_cmd_check_action
with:
work_dir: ${{ github.workspace }}

- name: Get test matrix
id: get-test-matrix
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-code-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
uses: actions/checkout@v4

- name: Check Dangerous Command Injection
run: cd ${{ github.workspace }} && bash .github/workflows/scripts/check_cmd_injection.sh
uses: opea-project/validation/actions/check_cmd@add_cmd_check_action
with:
work_dir: ${{ github.workspace }}

- name: Docker Build
run: |
Expand Down

0 comments on commit d9560d6

Please sign in to comment.