66 workflow_dispatch :
77
88concurrency :
9- group : " ci -${{ github.ref }}"
9+ group : ${{ github.workflow }} -${{ github.ref }}
1010 cancel-in-progress : true
1111
1212defaults :
@@ -24,17 +24,17 @@ jobs:
2424
2525 steps :
2626 - name : Checkout code
27- uses : actions/checkout@v4
27+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2828
2929 - name : Set up Go
30- uses : actions/setup-go@v5
30+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
3131 with :
3232 go-version : ' ${{ env.GO_VERSION }}'
3333 cache : true
3434 cache-dependency-path : cli/go.sum
3535
3636 - name : Cache Go tools
37- uses : actions/cache@v4
37+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
3838 with :
3939 path : ~/go/bin
4040 key : go-tools-${{ runner.os }}-${{ hashFiles('cli/go.sum') }}
@@ -80,10 +80,10 @@ jobs:
8080
8181 steps :
8282 - name : Checkout code
83- uses : actions/checkout@v4
83+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
8484
8585 - name : Set up Go
86- uses : actions/setup-go@v5
86+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
8787 with :
8888 go-version : ' ${{ env.GO_VERSION }}'
8989 cache : true
@@ -101,7 +101,7 @@ jobs:
101101
102102 - name : Upload coverage to Codecov
103103 if : github.repository == 'jongio/azd-copilot'
104- uses : codecov/codecov-action@v4
104+ uses : codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
105105 with :
106106 file : coverage/coverage.out
107107 flags : unittests
@@ -121,18 +121,8 @@ jobs:
121121 COVERAGE=$(go tool cover -func=../coverage/coverage.out | grep total | awk '{print $3}')
122122 echo "**Total Coverage: $COVERAGE**" >> $GITHUB_STEP_SUMMARY
123123
124- build :
125- name : Build
126- runs-on : ubuntu-latest
127- needs : [preflight, test]
128- timeout-minutes : 30
129-
130- steps :
131- - name : Checkout code
132- uses : actions/checkout@v4
133-
134124 - name : Set up Go
135- uses : actions/setup-go@v5
125+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
136126 with :
137127 go-version : ' ${{ env.GO_VERSION }}'
138128 cache : true
@@ -146,7 +136,7 @@ jobs:
146136 GOOS=darwin GOARCH=arm64 go build -o bin/darwin-arm64/copilot ./src/cmd/copilot
147137
148138 - name : Upload artifacts
149- uses : actions/upload-artifact@v4
139+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
150140 with :
151141 name : binaries
152142 path : cli/bin/
0 commit comments