Skip to content

Commit b91de2d

Browse files
committed
Replace GH action versions with SHA1 for build.yml
1 parent c92549b commit b91de2d

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
build-sbt:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
strategy:
2020
fail-fast: false
2121
matrix:
@@ -35,23 +35,14 @@ jobs:
3535
name: Spark ${{matrix.spark}} on Scala ${{matrix.scala}}
3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v6.0.2
38+
# gh api repos/actions/checkout/commits/v6.0.2 --jq '.sha'
39+
uses: actions/checkout@vde0fac2e4500dabe0009e67214ff5f5447ce83dd
3940
- name: Setup JDK
40-
uses: actions/setup-java@v5.1.0
41+
# gh api repos/actions/setup-java/commits/v5.0.1 --jq '.sha'
42+
uses: gh api repos/actions/setup-java/commits/v5.1.0 --jq '.sha'
4143
with:
4244
distribution: temurin
4345
java-version: 8
4446
cache: sbt
45-
- name: Install sbt
46-
run: |
47-
sudo apt-get update
48-
sudo apt-get install apt-transport-https curl gnupg -yqq
49-
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
50-
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
51-
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
52-
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
53-
sudo apt-get update
54-
sudo apt-get install sbt
55-
5647
- name: Build and run tests
5748
run: sbt ++${{matrix.scala}} test -DSPARK_VERSION=${{matrix.spark}}

0 commit comments

Comments
 (0)