Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix openssf #274

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/workflow_finetune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-ft
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
finetune:
name: finetune
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Build Docker Image
run: |
Expand All @@ -88,6 +91,12 @@ jobs:
source dev/scripts/ci-functions.sh
finetune_test ${{ matrix.model }}

- name: Run Finetune DPO Test
run: |
TARGET="finetune"
source dev/scripts/ci-functions.sh
finetune_dpo_test ${{ matrix.model }}

- name: Run PEFT-LoRA Test
run: |
source dev/scripts/ci-functions.sh
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow_finetune_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
type: string
default: 'http://proxy-prc.intel.com:912'

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
finetune-gpu:
name: finetune-gpu
Expand All @@ -35,7 +38,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Running task on Intel GPU
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow_inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-inf
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
inference:
name: inference
Expand Down Expand Up @@ -65,7 +68,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Determine Target
id: "target"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow_inference_gaudi2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-inf-gaudi2
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
inference:
name: inference
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
echo "target=$target" >> $GITHUB_OUTPUT

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Build Docker Image
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-lt
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
lint:
name: lint
Expand All @@ -22,7 +25,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Run Lint
run: ./format.sh -a
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/workflow_orders_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: []
# schedule:
# - cron: "0 16 * * *"

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:

call-inference:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/workflow_orders_on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- '**'
- '!*.md'

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
Lint:
uses: ./.github/workflows/workflow_lint.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow_orders_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
paths:
- '**'
- '!*.md'

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:

Lint:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/workflow_test_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-bench
cancel-in-progress: true

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
setup-test:

Expand All @@ -51,7 +54,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Load environment variables
run: cat /root/actions-runner-config/.env >> $GITHUB_ENV
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/workflow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
type: string
default: 'pr'

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
setup-test:

Expand All @@ -26,10 +29,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{matrix.python-version}}
architecture: 'x64'
Expand Down Expand Up @@ -60,10 +63,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{matrix.python-version}}
architecture: 'x64'
Expand Down Expand Up @@ -94,10 +97,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{matrix.python-version}}
architecture: 'x64'
Expand Down Expand Up @@ -141,7 +144,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Determine Target
id: "target"
Expand All @@ -165,7 +168,7 @@ jobs:
code_checkout_path=${{ github.workspace }}
source dev/scripts/ci-functions.sh
start_docker ${TARGET} ${code_checkout_path}

- name: Install Dependencies for Tests
run: |
TARGET=${{steps.target.outputs.target}}
Expand All @@ -189,4 +192,4 @@ jobs:
run: |
TARGET=${{steps.target.outputs.target}}
source dev/scripts/ci-functions.sh
stop_container ${TARGET}
stop_container ${TARGET}
Loading