88 pull_request :
99 workflow_dispatch :
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 conform :
1316 runs-on : ubuntu-latest
1417 name : Conform
1518
1619 steps :
17- - uses : actions/checkout@v4
20+ - uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
21+ with :
22+ egress-policy : audit
23+
24+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1825 with :
1926 fetch-depth : 0
2027
21- - uses : siderolabs/conform@v0.1.0-alpha.27
28+ - uses : siderolabs/conform@6380738b7fdfc68b208ce0674c4ac1ba314ba600 # v0.1.0-alpha.27
2229 with :
2330 token : ${{ secrets.GITHUB_TOKEN }}
2431
@@ -27,13 +34,15 @@ jobs:
2734 name : Lint Dockerfile
2835
2936 steps :
30- - name : Checkout repository
31- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
37+ - uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
38+ with :
39+ egress-policy : audit
40+
41+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3242 with :
3343 fetch-depth : 0
3444
35- - name : Lint Dockerfile
36- uses : hadolint/hadolint-action@v3.1.0
45+ - uses : hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
3746 with :
3847 dockerfile : Dockerfile
3948
@@ -42,16 +51,17 @@ jobs:
4251 name : Build Container Image
4352
4453 steps :
45- - name : Checkout repository
46- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
54+ - uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
55+ with :
56+ egress-policy : audit
57+
58+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4759 with :
4860 fetch-depth : 0
4961 token : ${{ secrets.GITHUB_TOKEN }}
5062
51- - name : Setup QEMU
52- uses : docker/setup-qemu-action@v3
53- - name : Setup Docker Buildx
54- uses : docker/setup-buildx-action@v3
63+ - uses : docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
64+ - uses : docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
5565
5666 - name : Get Upstream Tags
5767 id : from_tag
6373 PGVECTO_FROM_TAG=$(echo $PGVECTO_IMAGE | cut -d'-' -f4)
6474 echo "pgvecto=${PGVECTO_FROM_TAG}" >> "$GITHUB_OUTPUT"
6575
66- - name : Build Image
67- uses : docker/build-push-action@v6
76+ - uses : docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
6877 with :
6978 context : .
7079 platforms : linux/amd64,linux/arm64
0 commit comments