From c2378a95466655b9efe3d616a2f302738517edba Mon Sep 17 00:00:00 2001 From: Shaojun Liu <61072813+liu-shaojun@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:19:44 +0800 Subject: [PATCH] Fix code scanning issues (#10129) * Fix code scanning issues * update oneccl_bind_pt link * update * update --------- Co-authored-by: Your Name --- .github/workflows/llm-binary-build.yml | 3 +++ .github/workflows/llm-nightly-test.yml | 3 +++ .github/workflows/llm-ppl-evaluation.yml | 3 +++ .github/workflows/llm_example_tests.yml | 3 +++ .github/workflows/llm_performance_tests.yml | 3 +++ .github/workflows/llm_tests_for_stable_version_on_arc.yml | 3 +++ .github/workflows/llm_tests_for_stable_version_on_spr.yml | 3 +++ .github/workflows/llm_unit_tests.yml | 3 +++ 8 files changed, 24 insertions(+) diff --git a/.github/workflows/llm-binary-build.yml b/.github/workflows/llm-binary-build.yml index 2d1b901690e..c1898f7f621 100644 --- a/.github/workflows/llm-binary-build.yml +++ b/.github/workflows/llm-binary-build.yml @@ -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 diff --git a/.github/workflows/llm-nightly-test.yml b/.github/workflows/llm-nightly-test.yml index 439c1523786..8c70980584c 100644 --- a/.github/workflows/llm-nightly-test.yml +++ b/.github/workflows/llm-nightly-test.yml @@ -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: diff --git a/.github/workflows/llm-ppl-evaluation.yml b/.github/workflows/llm-ppl-evaluation.yml index d36479655e8..13f02339ecf 100644 --- a/.github/workflows/llm-ppl-evaluation.yml +++ b/.github/workflows/llm-ppl-evaluation.yml @@ -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: diff --git a/.github/workflows/llm_example_tests.yml b/.github/workflows/llm_example_tests.yml index aa00771dad0..23d9a876d0e 100644 --- a/.github/workflows/llm_example_tests.yml +++ b/.github/workflows/llm_example_tests.yml @@ -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: diff --git a/.github/workflows/llm_performance_tests.yml b/.github/workflows/llm_performance_tests.yml index d49dfd90c1e..ce88197265b 100644 --- a/.github/workflows/llm_performance_tests.yml +++ b/.github/workflows/llm_performance_tests.yml @@ -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: diff --git a/.github/workflows/llm_tests_for_stable_version_on_arc.yml b/.github/workflows/llm_tests_for_stable_version_on_arc.yml index a711422341e..0c11de9f887 100644 --- a/.github/workflows/llm_tests_for_stable_version_on_arc.yml +++ b/.github/workflows/llm_tests_for_stable_version_on_arc.yml @@ -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: diff --git a/.github/workflows/llm_tests_for_stable_version_on_spr.yml b/.github/workflows/llm_tests_for_stable_version_on_spr.yml index 09a3a674d16..f7df9b4287c 100644 --- a/.github/workflows/llm_tests_for_stable_version_on_spr.yml +++ b/.github/workflows/llm_tests_for_stable_version_on_spr.yml @@ -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: diff --git a/.github/workflows/llm_unit_tests.yml b/.github/workflows/llm_unit_tests.yml index 83928648417..7924fda638a 100644 --- a/.github/workflows/llm_unit_tests.yml +++ b/.github/workflows/llm_unit_tests.yml @@ -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