Skip to content

Commit 2d384f8

Browse files
committed
Target master and harden the CI workflow
Run tests on pushes and PRs to master (the default branch) instead of the old lwt/test-suite branches, restrict GITHUB_TOKEN to read-only contents, and pin actions to commit SHAs to guard against tag hijacking.
1 parent 2bc8606 commit 2d384f8

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ lwt, test-suite ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ lwt ]
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
811

912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout code
14-
uses: actions/checkout@v4
17+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1518

1619
- name: Set up OCaml
17-
uses: ocaml/setup-ocaml@v3
20+
uses: ocaml/setup-ocaml@e32b06a3e831ff2fbc6f08cf35be2085e3918014 # v3.6.1
1821
with:
1922
ocaml-compiler: 5.1.1
2023
dune-cache: true

0 commit comments

Comments
 (0)