File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 types :
66 [published]
77
8+ permissions : # added using https://github.com/step-security/secure-workflows
9+ contents : read
10+
811jobs :
912 publish :
1013 name : Publish Release to HEX PM
@@ -16,12 +19,17 @@ jobs:
1619 env :
1720 HEX_API_KEY : ${{ secrets.HEX_API_KEY }}
1821 steps :
19- - uses : actions/checkout@v3
20- - uses : erlef/setup-elixir@v1
22+ - name : Harden Runner
23+ uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
24+ with :
25+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
26+
27+ - uses : actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
28+ - uses : erlef/setup-elixir@b980a5ac9b7316a23ebc16de2bb69b7c3ad731b5 # v1.15.0
2129 with :
2230 otp-version : ${{ matrix.otp }}
2331 elixir-version : ${{ matrix.elixir }}
24- - uses : actions/cache@v3
32+ - uses : actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3.2.0
2533 with :
2634 path : deps
2735 key : ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Original file line number Diff line number Diff line change @@ -18,11 +18,16 @@ jobs:
1818 env :
1919 MIX_ENV : test
2020 steps :
21+ - name : Harden Runner
22+ uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
23+ with :
24+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
25+
2126 - name : Checkout Github repo
22- uses : actions/checkout@v3
27+ uses : actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
2328
2429 - name : Sets up an Erlang/OTP environment
25- uses : erlef/setup-elixir@v1
30+ uses : erlef/setup-elixir@b980a5ac9b7316a23ebc16de2bb69b7c3ad731b5 # v1.15.0
2631 with :
2732 otp-version : ${{ matrix.otp }}
2833 elixir-version : ${{ matrix.elixir }}
3439 echo "::set-output name=mix_hash::$mix_hash"
3540
3641 - name : Cache dependecies
37- uses : actions/cache@v3
42+ uses : actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3.2.0
3843 with :
3944 path : deps
4045 key : ${{ runner.os }}-mix-${{ steps.set_vars.outputs.mix_hash }}
4348
4449 - name : Cache PLT files
4550 id : plt-cache
46- uses : actions/cache@v3
51+ uses : actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3.2.0
4752 with :
4853 path : |
4954 _build
7681 needs : tests
7782 runs-on : ubuntu-20.04
7883 steps :
84+ - name : Harden Runner
85+ uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
86+ with :
87+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
88+
7989 - name : Set BUILD_NUMBER for Pull Request event
8090 if : github.event_name == 'pull_request'
8191 run : echo "BUILD_NUMBER=${{ github.event.pull_request.head.sha }}-PR-${{ github.event.pull_request.number }}" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 2121 id-token : write
2222
2323 steps :
24+ - name : Harden Runner
25+ uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
26+ with :
27+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
28+
2429 - name : " Checkout code"
2530 uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
2631 with :
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.8.9 (22.12.2022)
4+ * Harden GitHub Actions.
5+
36## 0.8.8 (20.12.2022)
47* Update build badge and lock to ubuntu-20.04.
58
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ You should only use **`stellar_base`** if you are planning to build on top of it
2424``` elixir
2525def deps do
2626 [
27- {:stellar_base , " ~> 0.8.8 " }
27+ {:stellar_base , " ~> 0.8.9 " }
2828 ]
2929end
3030```
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule StellarBase.MixProject do
22 use Mix.Project
33
44 @ github_url "https://github.com/kommitters/stellar_base"
5- @ version "0.8.8 "
5+ @ version "0.8.9 "
66
77 def project do
88 [
You can’t perform that action at this time.
0 commit comments