Skip to content

Commit c031a76

Browse files
ZePan110pre-commit-ci[bot]
authored andcommitted
Fix some security issues (opea-project#2289)
Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: cogniware-devops <ambarish.desai@cogniware.ai>
1 parent 04696c5 commit c031a76

36 files changed

Lines changed: 124 additions & 79 deletions

.github/workflows/_build_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
fi
7979
8080
- name: Checkout out GenAIExamples
81-
uses: actions/checkout@v4
81+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
8282
with:
8383
ref: ${{ env.CHECKOUT_REF }}
8484
fetch-depth: 0

.github/workflows/_get-image-list.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
run_matrix: ${{ steps.get-matrix.outputs.run_matrix }}
3232
steps:
3333
- name: Checkout out Repo
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
3535

3636
- name: Checkout GenAIComps Repository
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
3838
with:
3939
repository: opea-project/GenAIComps
4040
path: GenAIComps
@@ -45,7 +45,7 @@ jobs:
4545
image_list=[]
4646
run_matrix="{\"include\":["
4747
if [[ ! -z "${{ inputs.examples }}" ]]; then
48-
pip install yq
48+
pip install yq==3.4.3
4949
examples=($(echo ${{ inputs.examples }} | tr ',' ' '))
5050
for example in ${examples[@]}
5151
do

.github/workflows/_get-test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
echo "checkout ref ${{ env.CHECKOUT_REF }}"
4848
4949
- name: Checkout out Repo
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
5151
with:
5252
ref: ${{ env.CHECKOUT_REF }}
5353
fetch-depth: 0

.github/workflows/_helm-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
echo "checkout ref ${CHECKOUT_REF}"
5656
5757
- name: Checkout Repo
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
5959
with:
6060
ref: ${{ steps.get-checkout-ref.outputs.CHECKOUT_REF }}
6161
fetch-depth: 0
@@ -128,7 +128,7 @@ jobs:
128128
echo "checkout ref ${CHECKOUT_REF}"
129129
130130
- name: Checkout Repo
131-
uses: actions/checkout@v4
131+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
132132
with:
133133
ref: ${{ steps.get-checkout-ref.outputs.CHECKOUT_REF }}
134134
fetch-depth: 0

.github/workflows/_run-docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
echo "checkout ref ${CHECKOUT_REF}"
6262
6363
- name: Checkout out Repo
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
6565
with:
6666
ref: ${{ steps.get-checkout-ref.outputs.CHECKOUT_REF }}
6767
fetch-depth: 0
@@ -150,7 +150,7 @@ jobs:
150150
docker images
151151
152152
- name: Checkout out Repo
153-
uses: actions/checkout@v4
153+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
154154
with:
155155
ref: ${{ needs.get-test-case.outputs.CHECKOUT_REF }}
156156
fetch-depth: 0
@@ -243,7 +243,7 @@ jobs:
243243
244244
- name: Publish pipeline artifact
245245
if: ${{ !cancelled() }}
246-
uses: actions/upload-artifact@v4
246+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
247247
with:
248248
name: ${{ inputs.hardware }}_${{ inputs.example }}_${{ matrix.test_case }}
249249
path: ${{ github.workspace }}/${{ inputs.example }}/tests/*.log

.github/workflows/_run-one-click.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Checkout out Repo
6262
if: ${{ inputs.deploy_method == 'docker' }}
63-
uses: actions/checkout@v4
63+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
6464
with:
6565
fetch-depth: 0
6666

@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Checkout out Repo
9696
if: ${{ inputs.deploy_method == 'k8s' }}
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
9898
with:
9999
fetch-depth: 0
100100

@@ -153,7 +153,7 @@ jobs:
153153
LVM_model: ${{ env.LVM_model }}
154154
run: |
155155
cd ${{ github.workspace }}/one_click_deploy
156-
python3 -m pip install -r requirements.txt
156+
python3 -m pip install --require-hashes -r requirements.txt
157157
158158
if [ "${{ inputs.deploy_method }}" = "k8s" ]; then
159159
export OPEA_K8S_VLLM_SKIP_WARMUP=TRUE
@@ -205,7 +205,7 @@ jobs:
205205
206206
- name: Publish pipeline artifact
207207
if: ${{ !cancelled() }}
208-
uses: actions/upload-artifact@v4
208+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
209209
with:
210210
name: ${{ inputs.deploy_method }}
211211
path: ${{ github.workspace }}/${{ inputs.deploy_method }}-tests/test-results.log

.github/workflows/_trivy-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
sudo rm -rf ${{github.workspace}}/* || true
4444
docker system prune -f
4545
- name: Checkout out Repo
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
4747
- name: Install Dependencies
4848
run: |
4949
sudo apt-get update
@@ -91,7 +91,7 @@ jobs:
9191
shell: bash
9292

9393
- name: Security Scan Container
94-
uses: aquasecurity/trivy-action@0.24.0
94+
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
9595
if: ${{ inputs.trivy_scan }}
9696
with:
9797
image-ref: ${{ env.OPEA_IMAGE_REPO }}opea/${{ inputs.image }}:${{ inputs.tag }}

.github/workflows/check-online-doc-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818

1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
2121
with:
2222
path: GenAIExamples
2323

2424
- name: Checkout docs
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
2626
with:
2727
repository: opea-project/docs
2828
path: docs

.github/workflows/daily-update-vllm-version.yml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
3636
with:
3737
fetch-depth: 0
3838
ref: ${{ github.ref }}

.github/workflows/docker/code-scan.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (C) 2024 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4-
ARG UBUNTU_VER=22.04
5-
FROM ubuntu:${UBUNTU_VER} as devel
4+
# ARG UBUNTU_VER=22.04
5+
FROM ubuntu@sha256:4e0171b9275e12d375863f2b3ae9ce00a4c53ddda176bd55868df97ac6f21a6e as devel
66

77
ENV LANG=C.UTF-8
88

0 commit comments

Comments
 (0)