99
1010 source-code-checks :
1111 runs-on : ubuntu-24.04
12+ timeout-minutes : 5
13+
14+ permissions :
15+ contents : read
1216
1317 steps :
14- - uses : actions/checkout@v5
18+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1519
1620 # - name: Check formatting with Ruff
17- # uses: chartboost/ruff-action@v1
21+ # uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1
1822 # with:
1923 # args: 'format --check'
2024
2125 - name : Check linting with Ruff
22- uses : chartboost/ruff-action@v1
26+ uses : chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1
2327 with :
2428 args : ' check'
2529
@@ -35,18 +39,22 @@ jobs:
3539 needs : source-code-checks
3640 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
3741 runs-on : ubuntu-24.04
42+ timeout-minutes : 15
3843 strategy :
3944 matrix :
4045 # Python EOL version are note tested
4146 # Multiple Python version only tested for Linux
4247 python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
4348
49+ permissions :
50+ contents : read
51+
4452 steps :
4553
46- - uses : actions/checkout@v5
54+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
4755
4856 - name : Set up Python ${{ matrix.python-version }}
49- uses : actions/setup-python@v6
57+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
5058 with :
5159 python-version : ${{ matrix.python-version }}
5260 cache : ' pip'
@@ -65,17 +73,22 @@ jobs:
6573 needs : source-code-checks
6674 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
6775 runs-on : windows-2025
76+ timeout-minutes : 15
6877 strategy :
6978 matrix :
7079 # Windows-curses not available for Python 3.14 for the moment
7180 # See https://github.com/zephyrproject-rtos/windows-curses/issues/76
7281 python-version : ["3.13"]
82+
83+ permissions :
84+ contents : read
85+
7386 steps :
7487
75- - uses : actions/checkout@v5
88+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
7689
7790 - name : Set up Python ${{ matrix.python-version }}
78- uses : actions/setup-python@v6
91+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
7992 with :
8093 python-version : ${{ matrix.python-version }}
8194 cache : ' pip'
@@ -95,17 +108,21 @@ jobs:
95108 needs : source-code-checks
96109 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
97110 runs-on : macos-15
111+ timeout-minutes : 15
98112 strategy :
99113 matrix :
100114 # Only test the latest stable version
101115 python-version : ["3.14"]
102116
117+ permissions :
118+ contents : read
119+
103120 steps :
104121
105- - uses : actions/checkout@v5
122+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
106123
107124 - name : Set up Python ${{ matrix.python-version }}
108- uses : actions/setup-python@v6
125+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
109126 with :
110127 python-version : ${{ matrix.python-version }}
111128 cache : ' pip'
@@ -129,10 +146,10 @@ jobs:
129146 # python-version: ["3.14"]
130147 # steps:
131148
132- # - uses: actions/checkout@v5
149+ # - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
133150
134151 # - name: Set up Python ${{ matrix.python-version }}
135- # uses: actions/setup-python@v6
152+ # uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
136153 # with:
137154 # python-version: ${{ matrix.python-version }}
138155 # cache: 'pip'
0 commit comments