Skip to content

Commit 326e7e0

Browse files
authored
Merge branch 'master' into develop
2 parents 080557f + 9e25551 commit 326e7e0

4 files changed

Lines changed: 42 additions & 17 deletions

File tree

.github/workflows/idefix-ci-doc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ on:
99
paths-ignore:
1010
- '.github/ISSUE_TEMPLATE/*'
1111

12+
permissions: {}
1213

1314
jobs:
1415
ReadTheDocs:
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Check out repo
18-
uses: actions/checkout@v3
19+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
20+
with:
21+
persist-credentials: false
1922
- name: install doxygen
2023
run: sudo apt-get install -y doxygen
2124
- name: install python dependencies

.github/workflows/idefix-ci-jobs.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ env:
2121
PYTHONPATH: ${{ github.workspace }}
2222
IDEFIX_DIR: ${{ github.workspace }}
2323

24+
permissions: {}
2425

2526
jobs:
2627
ShocksHydro:
2728
runs-on: self-hosted
2829
steps:
2930
- name: Check out repo
30-
uses: actions/checkout@v3
31+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3132
with:
3233
submodules: recursive
34+
persist-credentials: false
3335
- name: Sod test
3436
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/sod -all $TESTME_OPTIONS
3537
- name: Isothermal Sod test
@@ -43,9 +45,10 @@ jobs:
4345
runs-on: self-hosted
4446
steps:
4547
- name: Check out repo
46-
uses: actions/checkout@v3
48+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4749
with:
4850
submodules: recursive
51+
persist-credentials: false
4952
- name: Viscous flow past cylinder
5053
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder -all $TESTME_OPTIONS
5154
- name: Viscous disk
@@ -57,9 +60,10 @@ jobs:
5760
runs-on: self-hosted
5861
steps:
5962
- name: Check out repo
60-
uses: actions/checkout@v3
63+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6164
with:
6265
submodules: recursive
66+
persist-credentials: false
6367
- name: MHD Sod test
6468
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/sod -all $TESTME_OPTIONS
6569
- name: MHD Isothermal Sod test
@@ -77,9 +81,10 @@ jobs:
7781
runs-on: self-hosted
7882
steps:
7983
- name: Check out repo
80-
uses: actions/checkout@v3
84+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8185
with:
8286
submodules: recursive
87+
persist-credentials: false
8388
- name: Ambipolar C Shock
8489
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/AmbipolarCshock -all $TESTME_OPTIONS
8590
- name: Ambipolar C Shock 3D
@@ -96,9 +101,10 @@ jobs:
96101
runs-on: self-hosted
97102
steps:
98103
- name: Check out repo
99-
uses: actions/checkout@v3
104+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
100105
with:
101106
submodules: recursive
107+
persist-credentials: false
102108
- name: Fargo + planet
103109
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/FargoPlanet -all $TESTME_OPTIONS
104110
- name: Fargo MHD spherical
@@ -109,9 +115,10 @@ jobs:
109115
runs-on: self-hosted
110116
steps:
111117
- name: Check out repo
112-
uses: actions/checkout@v3
118+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
113119
with:
114120
submodules: recursive
121+
persist-credentials: false
115122
- name: Hydro shearing box
116123
run: scripts/ci/run-tests $IDEFIX_DIR/test/HD/ShearingBox -all $TESTME_OPTIONS
117124
- name: MHD shearing box
@@ -122,9 +129,10 @@ jobs:
122129
runs-on: self-hosted
123130
steps:
124131
- name: Check out repo
125-
uses: actions/checkout@v3
132+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
126133
with:
127134
submodules: recursive
135+
persist-credentials: false
128136
- name: Jeans Instability
129137
run: scripts/ci/run-tests $IDEFIX_DIR/test/SelfGravity/JeansInstability -all $TESTME_OPTIONS
130138
- name: Random sphere spherical
@@ -141,9 +149,10 @@ jobs:
141149
runs-on: self-hosted
142150
steps:
143151
- name: Check out repo
144-
uses: actions/checkout@v3
152+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
145153
with:
146154
submodules: recursive
155+
persist-credentials: false
147156
- name: 3 body
148157
run: scripts/ci/run-tests $IDEFIX_DIR/test/Planet/Planet3Body -all $TESTME_OPTIONS
149158
- name: migration
@@ -162,9 +171,10 @@ jobs:
162171
runs-on: self-hosted
163172
steps:
164173
- name: Check out repo
165-
uses: actions/checkout@v3
174+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
166175
with:
167176
submodules: recursive
177+
persist-credentials: false
168178
- name: Energy conservation
169179
run: scripts/ci/run-tests $IDEFIX_DIR/test/Dust/DustEnergy -all $TESTME_OPTIONS
170180
- name: Dusty wave
@@ -175,9 +185,10 @@ jobs:
175185
runs-on: self-hosted
176186
steps:
177187
- name: Check out repo
178-
uses: actions/checkout@v3
188+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
179189
with:
180190
submodules: recursive
191+
persist-credentials: false
181192
- name: MTI
182193
run: scripts/ci/run-tests $IDEFIX_DIR/test/MHD/MTI -all $TESTME_OPTIONS
183194
- name: Spherical anisotropic diffusion
@@ -192,9 +203,10 @@ jobs:
192203
runs-on: self-hosted
193204
steps:
194205
- name: Check out repo
195-
uses: actions/checkout@v3
206+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
196207
with:
197208
submodules: recursive
209+
persist-credentials: false
198210
- name: Run examples test
199211
run: cd test && ./checks_examples.sh $TEST_OPTIONS
200212

@@ -203,9 +215,10 @@ jobs:
203215
runs-on: self-hosted
204216
steps:
205217
- name: Check out repo
206-
uses: actions/checkout@v3
218+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
207219
with:
208220
submodules: recursive
221+
persist-credentials: false
209222
- name: Lookup table
210223
run: scripts/ci/run-tests $IDEFIX_DIR/test/utils/lookupTable -all $TESTME_OPTIONS
211224
- name: Dump Image

.github/workflows/idefix-ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ on:
99
paths-ignore:
1010
- '.github/ISSUE_TEMPLATE/*'
1111

12+
permissions: {}
13+
1214
jobs:
1315
Linter:
1416
# Don't do this in forks
1517
if: ${{ github.repository == 'idefix-code/idefix' || github.repository == 'glesur/idefix' }}
1618
runs-on: ubuntu-latest
1719
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-python@v4
20+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
21+
with:
22+
persist-credentials: false
23+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2024
with:
2125
python-version: 3.x
22-
- uses: pre-commit/action@v3.0.0
23-
- uses: pre-commit-ci/lite-action@v1.0.0
26+
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
27+
- uses: pre-commit-ci/lite-action@50143aaf27e2c42e75a5e06185a471d9582e89df # v1.0.0
2428
if: always()
2529

2630
icc-jobs:

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ repos:
1515
- id: check-added-large-files
1616
args: ['--maxkb=100'] ## prevent files larger than 100kB from being commited (exclude git lfs files)
1717

18+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
19+
rev: v1.23.1
20+
hooks:
21+
- id: zizmor
22+
1823
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
1924
rev: v1.1.2
2025
hooks:

0 commit comments

Comments
 (0)