2424 branches : [ main, master ]
2525 workflow_dispatch :
2626
27+ permissions : # added using https://github.com/step-security/secure-repo
28+ contents : read
29+
2730jobs :
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
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') }}
0 commit comments