99 workflow_dispatch :
1010
1111concurrency :
12- group : ci -${{ github.ref }}
12+ group : ${{ github.workflow }} -${{ github.ref }}
1313 cancel-in-progress : true
1414
1515defaults :
@@ -27,17 +27,17 @@ jobs:
2727
2828 steps :
2929 - name : Checkout code
30- uses : actions/checkout@v4
30+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3131
3232 - name : Set up Go
33- uses : actions/setup-go@v5
33+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
3434 with :
3535 go-version : ' ${{ env.GO_VERSION }}'
3636 cache : true
3737 cache-dependency-path : cli/go.sum
3838
3939 - name : Cache Go tools
40- uses : actions/cache@v4
40+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
4141 with :
4242 path : ~/go/bin
4343 key : go-tools-${{ runner.os }}-${{ env.GO_VERSION }}
@@ -73,10 +73,10 @@ jobs:
7373
7474 steps :
7575 - name : Checkout code
76- uses : actions/checkout@v4
76+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7777
7878 - name : Set up Go
79- uses : actions/setup-go@v5
79+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
8080 with :
8181 go-version : ' ${{ env.GO_VERSION }}'
8282 cache : true
9797
9898 - name : Upload coverage to Codecov
9999 if : github.repository == 'jongio/azd-exec'
100- uses : codecov/codecov-action@v4
100+ uses : codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
101101 with :
102102 file : coverage/coverage.out
103103 flags : unittests
@@ -119,22 +119,8 @@ jobs:
119119 COVERAGE=$(go tool cover -func=../coverage/coverage.out | grep total | awk '{print $3}')
120120 echo "**Total Coverage: $COVERAGE**" >> $GITHUB_STEP_SUMMARY
121121
122- build :
123- name : Build
124- runs-on : ubuntu-latest
125- needs : [preflight, test]
126- timeout-minutes : 30
127-
128- defaults :
129- run :
130- working-directory : cli
131-
132- steps :
133- - name : Checkout code
134- uses : actions/checkout@v4
135-
136122 - name : Set up Go
137- uses : actions/setup-go@v5
123+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
138124 with :
139125 go-version : ' ${{ env.GO_VERSION }}'
140126 cache : true
@@ -149,7 +135,7 @@ jobs:
149135 GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/exec ./src/cmd/exec
150136
151137 - name : Upload artifacts
152- uses : actions/upload-artifact@v4
138+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
153139 with :
154140 name : binaries
155141 path : cli/bin/
@@ -166,17 +152,17 @@ jobs:
166152
167153 steps :
168154 - name : Checkout code
169- uses : actions/checkout@v4
155+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
170156
171157 - name : Set up Go
172- uses : actions/setup-go@v5
158+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
173159 with :
174160 go-version : ' ${{ env.GO_VERSION }}'
175161 cache : true
176162 cache-dependency-path : cli/go.sum
177163
178164 - name : Set up Python
179- uses : actions/setup-python@v5
165+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
180166 with :
181167 python-version : ' 3.11'
182168
@@ -198,7 +184,7 @@ jobs:
198184
199185 - name : Upload test logs on failure
200186 if : failure()
201- uses : actions/upload-artifact@v4
187+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
202188 with :
203189 name : integration-test-logs-${{ matrix.os }}
204190 path : |
0 commit comments