Skip to content

Commit

Permalink
Fix code scanning issues (#10129)
Browse files Browse the repository at this point in the history
* Fix code scanning issues

* update oneccl_bind_pt link

* update

* update

---------

Co-authored-by: Your Name <Your Email>
  • Loading branch information
liu-shaojun authored Feb 8, 2024
1 parent c67d363 commit 428e100
Show file tree
Hide file tree
Showing 25 changed files with 93 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/license-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

env:
GIST_ID: 966d4c0bf23c67662120d1bf4b1c88dc

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: LLM Binary Build
# group: ${{ github.workflow }}-llm-binary-build-${{ github.event.pull_request.number || github.run_id }}
# cancel-in-progress: false

permissions:
contents: read

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm-nightly-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-nightly-test-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
schedule:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm-ppl-evaluation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-nightly-test-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
schedule:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm_example_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-example-tests-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# schedule:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm_performance_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-performance-tests-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
schedule:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm_tests_for_stable_version_on_arc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-performance-tests-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# pull_request:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm_tests_for_stable_version_on_spr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-performance-tests-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# pull_request:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llm_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-llm-unittest-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nano-nightly-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

env:
GIST_ID: bc8a699b455bced4a1aef138ad5df07e

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nano_howto_guides_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nano_notebooks_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nano_unit_tests_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/nano_unit_tests_pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand All @@ -29,11 +32,11 @@ jobs:
os: ["ubuntu-20.04"]
python-version: ["3.8"]
pytorch-version: [
"pytorch_110 neural-compressor==1.13.1 oneccl_bind_pt==1.10",
"pytorch_111 neural-compressor==1.13.1 oneccl_bind_pt==1.11",
"pytorch_112 neural-compressor==1.13.1 oneccl_bind_pt==1.12.100",
"pytorch_113 neural-compressor==2.0 oneccl_bind_pt==1.13",
"pytorch_20 neural-compressor==2.1 oneccl_bind_pt==2.0",
"pytorch_110 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.10.0-cp38-cp38-linux_x86_64.whl",
"pytorch_111 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.11.0-cp38-cp38-linux_x86_64.whl",
"pytorch_112 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.12.100%2Bcpu-cp38-cp38-linux_x86_64.whl",
"pytorch_113 neural-compressor==2.0 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.13.0%2Bcpu-cp38-cp38-linux_x86_64.whl",
"pytorch_20 neural-compressor==2.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-2.0.0%2Bcpu-cp38-cp38-linux_x86_64.whl",
]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -108,11 +111,11 @@ jobs:
os: ["ubuntu-20.04"]
python-version: ["3.8"]
pytorch-version: [
"pytorch_110 neural-compressor==1.13.1 oneccl_bind_pt==1.10",
"pytorch_111 neural-compressor==1.13.1 oneccl_bind_pt==1.11",
"pytorch_112 neural-compressor==1.13.1 oneccl_bind_pt==1.12.100",
"pytorch_113 neural-compressor==2.0 oneccl_bind_pt==1.13",
"pytorch_20 neural-compressor==2.1 oneccl_bind_pt==2.0",
"pytorch_110 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.10.0-cp38-cp38-linux_x86_64.whl",
"pytorch_111 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.11.0-cp38-cp38-linux_x86_64.whl",
"pytorch_112 neural-compressor==1.13.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.12.100%2Bcpu-cp38-cp38-linux_x86_64.whl",
"pytorch_113 neural-compressor==2.0 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-1.13.0%2Bcpu-cp38-cp38-linux_x86_64.whl",
"pytorch_20 neural-compressor==2.1 https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/cpu/oneccl_bind_pt-2.0.0%2Bcpu-cp38-cp38-linux_x86_64.whl",
]
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nano_unit_tests_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/performance-regression-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Performance Regression Test

permissions:
contents: read

on:
schedule:
- cron: '0 16 * * *'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/python-style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

# Controls when the action will run.
on:
push:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sdl_hadolint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Scanner-hadolint

on:
# schedule:
# - cron: '0 3 * * 0' # GMT time, 3:00 GMT == 3:00 China Every Sunday
Expand All @@ -7,6 +8,10 @@ on:
# pull_request:
# branchs: [ main ]
workflow_dispatch:

permissions:
contents: read

jobs:
scan-dockerfile:
runs-on: [self-hosted, SDL-TEST]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sdl_snyk_docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Scanner-snyk-docker

permissions:
contents: read

on:
# pull_request:
# branchs: [ main ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sdl_snyk_python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Scanner-snyk-python

permissions:
contents: read

on:
schedule:
- cron: '0 3 * * 0' # GMT time, 3:00 GMT == 11:00 China Every Sunday
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sdl_snyk_scala.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Scanner-snyk-scala

permissions:
contents: read

on:
# pull_request:
# branchs: [ main ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sdl_virus-malware.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Scanner-virus

permissions:
contents: read

on:
schedule:
- cron: '0 3 * * 0' # GMT time, 3:00 GMT == 3:00 China Every Sunday
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stable-diffusion-winlog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: stable-diffusion-win

permissions:
contents: read

on:
# pull_request:
# branchs: [ main ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/url-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Create PR to update nightly build download URL in docs/readthedocs/source/doc/Orca/Overview/install.md and auto merge

permissions:
contents: read

on:
schedule:
- cron: '0 13 * * 0' # GMT time, 13:00 GMT == 21:00 China
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/url_check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Check download URL in docs/readthedocs/source/doc/Orca/Overview/install.md

permissions:
contents: read

on:
push:
paths: 'docs/readthedocs/source/doc/Orca/Overview/install.md'
Expand Down

0 comments on commit 428e100

Please sign in to comment.