Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from step-security-bot/stepsecurity_remediation…
Browse files Browse the repository at this point in the history
…_1718306137

[StepSecurity] ci: Harden GitHub Actions
  • Loading branch information
Ryan Ware authored Jun 13, 2024
2 parents 06e335b + bfacd65 commit 5a071fd
Show file tree
Hide file tree
Showing 34 changed files with 102 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2eaiok_deltatuner_nightly_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'e2eAIOK/deltatuner/version'


permissions:
contents: read

jobs:
e2eaiok-dtuner-nightly-python-pypi:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2eaiok_deltatuner_release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish E2EAIOK Deltatuner Release to PyPI
on:
workflow_dispatch:

permissions:
contents: read

jobs:
e2eaiok-dtuner-nightly-python-pypi:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_deltatuner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- 'example/instruction_tuning_pipeline/finetune_clm.py'
- 'tests/deltatuner/cicd/**'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Deltatuner
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_asr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_asr.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas ASR
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_cnn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_cnn.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas CNN
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_hf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_hf.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas HF
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_nlp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_bert.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas NLP
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_vit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_vit.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas ViT
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_denas_vit_imagenet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_denas_vit_imagenet.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test DeNas ViT ImageNet
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_ma_adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- 'tests/cicd/jenkins_ma_adapter_test.sh'
- 'modelzoo/unet/**'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Model Adapter domain adapter
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_ma_baseline_ddp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'tests/cicd/ModelAdapterJenkinsfile'
- 'tests/cicd/jenkins_ma_baseline_ddp_test.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Model Adapter baseline DDP
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_ma_distiller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'tests/cicd/ModelAdapterJenkinsfile'
- 'tests/cicd/jenkins_ma_distiller_test.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Model Adapter distiller
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_ma_finetuner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'tests/cicd/ModelAdapterJenkinsfile'
- 'tests/cicd/jenkins_ma_finetuner_test.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Model Adapter finetuner
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workflow_nlp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/cicd/test_denas.bats'
- 'tests/cicd/jenkins_workflow_bert.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workflow NLP
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_bert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_bert_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload BERT
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_dien.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_dien_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload DIEN
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_dlrm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_dlrm_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload DLRM
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_minigo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_minigo_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload MiniGo
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
- 'tests/cicd/docker_horovod_test.sh'
- 'tests/cicd/docker_torchccl_test'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload Basic Pipeline
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_resnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_resnet_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload ResNet
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_rnnt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_rnnt_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload RNNT
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_test_workload_wnd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
- 'tests/cicd/Jenkinsfile*'
- 'tests/cicd/jenkins_wnd_test*.sh'

permissions:
contents: read

jobs:
integration_test:
name: Integration Test Workload WnD
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/performance_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- RecDP_v2.0

permissions:
contents: read

jobs:
perf-test:
name: Performance test AutoFE
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_docker_e2eaiokv12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'Dockerfile-ubuntu/Dockerfile-v1.2'
- '.github/workflows/release_docker_e2eaiokv12.yml'

permissions:
contents: read

jobs:
e2eaiok-release-docker:
runs-on: self-hosted
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_docker_pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'Dockerfile-ubuntu/DockerfilePytorch'
- '.github/workflows/release_docker_pytorch.yml'

permissions:
contents: read

jobs:
e2eaiok-release-docker:
runs-on: self-hosted
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_docker_pytorch112.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'Dockerfile-ubuntu/DockerfilePytorch112'
- '.github/workflows/release_docker_pytorch112.yml'

permissions:
contents: read

jobs:
e2eaiok-release-docker:
runs-on: self-hosted
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_docker_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'Dockerfile-ubuntu/DockerfileTensorflow'
- '.github/workflows/release_docker_tensorflow.yml'

permissions:
contents: read

jobs:
e2eaiok-release-docker:
runs-on: self-hosted
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_autofe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'RecDP/tests/cicd/bashrun_unittest_autofe.sh'
- 'RecDP/tests/test_autofe.py'

permissions:
contents: read

jobs:
unittest:
name: Unittest AutoFE
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_denas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- 'tests/unittest/denas/**'
- 'setup.py'

permissions:
contents: read

jobs:
unit_tests:
name: Unit Test DENAS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_llmutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- 'RecDP/tests/cicd/bashrun_unittest_llmutils.sh'
- 'RecDP/tests/test_llmutils.py'

permissions:
contents: read

jobs:
unittest:
name: Unittest LLMUtils
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_llmutils_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'RecDP/tests/cicd/bashrun_unittest_llmutilspipeline.sh'
- 'RecDP/tests/test_llmutils_operations.py'

permissions:
contents: read

jobs:
unittest:
name: Unittest LLM Operations
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_llmutils_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'RecDP/tests/cicd/bashrun_unittest_llmutilspipeline.sh'
- 'RecDP/tests/test_llmutils_operations.py'

permissions:
contents: read

jobs:
unittest:
name: Unittest LLM Pipeline
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_ma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- 'tests/unittest/ma/**'
- 'setup.py'

permissions:
contents: read

jobs:
unit_tests:
name: Unit Test MA
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest_util.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- 'tests/unittest/utils/**'
- 'setup.py'

permissions:
contents: read

jobs:
unit_tests:
name: Unit Test Util
Expand Down

0 comments on commit 5a071fd

Please sign in to comment.