Skip to content

Commit 9305fa9

Browse files
authored
Merge pull request #122 from cindytsai/github-actions
Review GitHub Actions Permission and Other Fix
2 parents d5800ad + 7980e78 commit 9305fa9

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

.github/workflows/cmake-build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Test if libyt can build with different options, download dependencies, and install and link correctly.
22

33
name: build test
4-
4+
permissions:
5+
contents: read
56
on:
67
push:
78
branches: [ main ]

.github/workflows/example-test-run.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Test if example can run on multiplatform and both in serial (gcc) and parallel (openmpi)
22

33
name: amr example
4-
4+
permissions:
5+
contents: read
56
on:
67
push:
78
branches: [ main ]

.github/workflows/memory-profile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: memory profile
2-
2+
permissions:
3+
contents: read
34
on:
45
push:
56
branches: [ "main" ]

.github/workflows/unit-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Also upload the code coverage report to codecov
33

44
name: unit test
5-
5+
permissions:
6+
contents: read
67
on:
78
push:
89
branches: [ "main" ]

src/yt_run_InteractiveMode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <readline/readline.h>
77

88
#include <cctype>
9+
#include <cstdio>
910
#include <iostream>
1011
#include <string>
1112

src/yt_run_ReloadScript.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <readline/readline.h>
77

88
#include <chrono>
9+
#include <cstdio>
910
#include <fstream>
1011
#include <iostream>
1112
#include <sstream>

0 commit comments

Comments
 (0)