Skip to content

Commit b08439e

Browse files
minmingzhucarsonwang
authored andcommitted
fix openssf issue (#400)
1 parent 6c61958 commit b08439e

File tree

5 files changed

+35
-23
lines changed

5 files changed

+35
-23
lines changed

.github/workflows/pypi.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,29 @@
1717

1818
name: RayDP PyPi
1919

20-
on:
20+
on:
2121
schedule:
2222
- cron: '0 0 * * *'
2323
# can manually trigger the workflow
2424
workflow_dispatch:
2525

26+
permissions: # added using https://github.com/step-security/secure-repo
27+
contents: read
28+
2629
jobs:
2730
build-and-publish:
2831
# do not run in forks
2932
if: ${{ github.repository_owner == 'oap-project' }}
3033
name: build wheel and upload
3134
runs-on: ubuntu-latest
3235
steps:
33-
- uses: actions/checkout@master
36+
- uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # master
3437
- name: Set up Python 3.7
35-
uses: actions/setup-python@v1
38+
uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1.2.4
3639
with:
3740
python-version: 3.7
3841
- name: Set up JDK 1.8
39-
uses: actions/setup-java@v1
42+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
4043
with:
4144
java-version: 1.8
4245
- name: days since the commit date
@@ -54,6 +57,6 @@ jobs:
5457
run: pip install wheel grpcio-tools && ./build.sh
5558
- name: Upload
5659
if: env.COMMIT_TODAY == 'true'
57-
uses: pypa/gh-action-pypi-publish@release/v1
60+
uses: pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06 # release/v1
5861
with:
5962
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/ray_nightly_test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- cron: '0 0 * * *'
2323
workflow_dispatch:
2424

25+
permissions: # added using https://github.com/step-security/secure-repo
26+
contents: read
27+
2528
jobs:
2629
build-and-test:
2730

@@ -34,13 +37,13 @@ jobs:
3437
runs-on: ${{ matrix.os }}
3538

3639
steps:
37-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
3841
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
42+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
4043
with:
4144
python-version: ${{ matrix.python-version }}
4245
- name: Set up JDK 1.8
43-
uses: actions/setup-java@v1
46+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
4447
with:
4548
java-version: 1.8
4649
- name: Install extra dependencies for macOS
@@ -54,13 +57,13 @@ jobs:
5457
sudo apt-get install -y mpich
5558
- name: Cache pip - Ubuntu
5659
if: matrix.os == 'ubuntu-latest'
57-
uses: actions/cache@v2
60+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
5861
with:
5962
path: ~/.cache/pip
6063
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
6164
- name: Cache pip - MacOS
6265
if: matrix.os == 'macos-latest'
63-
uses: actions/cache@v2
66+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
6467
with:
6568
path: ~/Library/Caches/pip
6669
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
@@ -96,7 +99,7 @@ jobs:
9699
HOROVOD_WITH_PYTORCH=1
97100
pip install horovod[pytorch,ray]
98101
- name: Cache Maven
99-
uses: actions/cache@v2
102+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
100103
with:
101104
path: ~/.m2
102105
key: ${{ matrix.os }}-m2-${{ hashFiles('core/pom.xml') }}

.github/workflows/raydp.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
branches: [ main, master ]
2525
workflow_dispatch:
2626

27+
permissions: # added using https://github.com/step-security/secure-repo
28+
contents: read
29+
2730
jobs:
2831
build-and-test:
2932

@@ -36,13 +39,13 @@ jobs:
3639
runs-on: ${{ matrix.os }}
3740

3841
steps:
39-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
4043
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
4245
with:
4346
python-version: ${{ matrix.python-version }}
4447
- name: Set up JDK 1.8
45-
uses: actions/setup-java@v1
48+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
4649
with:
4750
java-version: 1.8
4851
- name: Install extra dependencies for macOS
@@ -56,13 +59,13 @@ jobs:
5659
sudo apt-get install -y mpich
5760
- name: Cache pip - Ubuntu
5861
if: matrix.os == 'ubuntu-latest'
59-
uses: actions/cache@v2
62+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
6063
with:
6164
path: ~/.cache/pip
6265
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
6366
- name: Cache pip - MacOS
6467
if: matrix.os == 'macos-latest'
65-
uses: actions/cache@v2
68+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
6669
with:
6770
path: ~/Library/Caches/pip
6871
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
@@ -83,7 +86,7 @@ jobs:
8386
pip install "xgboost_ray[default]<=0.1.13"
8487
pip install torchmetrics
8588
- name: Cache Maven
86-
uses: actions/cache@v2
89+
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
8790
with:
8891
path: ~/.m2
8992
key: ${{ matrix.os }}-m2-${{ hashFiles('core/pom.xml') }}

.github/workflows/raydp_nightly.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,29 @@
1717

1818
name: Legacy raydp_nightly PyPi
1919

20-
on:
20+
on:
2121
schedule:
2222
- cron: '0 0 * * *'
2323
# can manually trigger the workflow
2424
workflow_dispatch:
2525

26+
permissions: # added using https://github.com/step-security/secure-repo
27+
contents: read
28+
2629
jobs:
2730
build-and-publish:
2831
# do not run in forks
2932
if: ${{ github.repository_owner == 'oap-project' }}
3033
name: build wheel and upload
3134
runs-on: ubuntu-latest
3235
steps:
33-
- uses: actions/checkout@master
36+
- uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # master
3437
- name: Set up Python 3.7
35-
uses: actions/setup-python@v1
38+
uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1.2.4
3639
with:
3740
python-version: 3.7
3841
- name: Set up JDK 1.8
39-
uses: actions/setup-java@v1
42+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
4043
with:
4144
java-version: 1.8
4245
- name: days since the commit date
@@ -54,6 +57,6 @@ jobs:
5457
run: pip install wheel grpcio-tools && ./build.sh
5558
- name: Upload
5659
if: env.COMMIT_TODAY == 'true'
57-
uses: pypa/gh-action-pypi-publish@release/v1
60+
uses: pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06 # release/v1
5861
with:
5962
password: ${{ secrets.PYPI_API_TOKEN }}

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rayproject/ray:latest
1+
FROM rayproject/ray:latest@sha256:c864e37f4ce516ff49425f69cac5503a51e84c333d30928416714a2c3da55b43
22

33
ARG HTTP_PROXY
44
ARG HTTPS_PROXY

0 commit comments

Comments
 (0)