55 branches : [main]
66 pull_request :
77
8- permissions :
9- contents : read
8+ permissions : read-all
109
1110jobs :
1211 ui :
1312 name : ui (build + test + budget)
1413 runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
1516 steps :
16- - uses : actions/checkout@v6
17+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1718
18- - uses : actions/setup-node@v6
19+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1920 with :
2021 node-version : ' 22'
2122 cache : ' npm'
4647 fi
4748
4849 - name : Upload ui/dist
49- uses : actions/upload-artifact@v7
50+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5051 with :
5152 name : ui-dist
5253 path : ui/dist
5657 test :
5758 name : test (${{ matrix.os }})
5859 needs : ui
60+ permissions :
61+ contents : read
5962 strategy :
6063 fail-fast : false
6164 matrix :
6467 env :
6568 CGO_ENABLED : " 1"
6669 steps :
67- - uses : actions/checkout@v6
70+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6871
69- - uses : actions/setup-go@v6
72+ - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
7073 with :
7174 go-version-file : go.mod
7275
7578 run : clang --version
7679
7780 - name : Go build cache
78- uses : actions/cache@v5
81+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
7982 with :
8083 path : |
8184 ~/.cache/go-build
8891 # Hydrate ui/dist with the build artifact produced by the `ui` job so
8992 # the //go:embed ui/dist directive has real assets to embed.
9093 - name : Download ui/dist
91- uses : actions/download-artifact@v8
94+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
9295 with :
9396 name : ui-dist
9497 path : ui/dist
@@ -103,7 +106,7 @@ jobs:
103106 run : CGO_ENABLED=1 go build -tags sqlite_fts5 -o docsiq ./
104107
105108 - name : Upload docsiq binary
106- uses : actions/upload-artifact@v7
109+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
107110 with :
108111 name : docsiq-${{ matrix.os }}
109112 path : docsiq
@@ -114,23 +117,25 @@ jobs:
114117 name : integration tests (-race)
115118 needs : ui
116119 runs-on : ubuntu-latest
120+ permissions :
121+ contents : read
117122 steps :
118- - uses : actions/checkout@v6
123+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
119124
120- - uses : actions/setup-go@v6
125+ - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
121126 with :
122127 go-version-file : go.mod
123128
124129 - name : cache go build
125- uses : actions/cache@v5
130+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
126131 with :
127132 path : |
128133 ~/.cache/go-build
129134 ~/go/pkg/mod
130135 key : go-integ-${{ hashFiles('go.sum') }}
131136
132137 - name : Download ui/dist
133- uses : actions/download-artifact@v8
138+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
134139 with :
135140 name : ui-dist
136141 path : ui/dist
0 commit comments