@@ -19,17 +19,17 @@ jobs:
1919
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v6
23-
24- - name : Run Gosec Security Scanner
25- uses : securego/gosec@master
26- with :
27- args : ./...
22+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2823
2924 - name : Set up Go
30- uses : actions/setup-go@v6
25+ uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3126 with :
32- go-version : ' 1.25'
27+ go-version : ' 1.26'
28+
29+ - name : Run Gosec Security Scanner
30+ run : |
31+ go install github.com/securego/gosec/v2/cmd/gosec@v2.23.0
32+ gosec ./...
3333
3434 - name : Run Go tests
3535 run : go test ./...
@@ -40,23 +40,23 @@ jobs:
4040# cosign-release: 'v2.6.0'
4141
4242 - name : Set up Docker Buildx
43- uses : docker/setup-buildx-action@v3
43+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
4444
4545 - name : Login to Docker Hub
46- uses : docker/login-action@v3
46+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
4747 with :
4848 username : ${{ secrets.DOCKERHUB_USERNAME }}
4949 password : ${{ secrets.DOCKERHUB_TOKEN }}
5050
5151 - name : Login to GitHub Container Registry
52- uses : docker/login-action@v3
52+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5353 with :
5454 registry : ghcr.io
5555 username : ${{ github.actor }}
5656 password : ${{ secrets.GITHUB_TOKEN }}
5757
5858 - name : Build and push image to Docker Hub and GHCR
59- uses : docker/build-push-action@v6
59+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
6060 id : push-all
6161 with :
6262 context : .
7070 ghcr.io/wollomatic/socket-proxy:testing-${{ github.sha }}
7171
7272# - name: Build and push Docker Hub image
73- # uses: docker/build-push-action@v6
73+ # uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
7474# id: push-dockerhub
7575# with:
7676# context: .
8888# COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
8989#
9090# - name: Build and push GHCR image
91- # uses: docker/build-push-action@v6
91+ # uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
9292# id: push-ghcr
9393# with:
9494# context: .
0 commit comments