You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ jobs:
103
103
104
104
This Action uses Github API to find the last successful workflow run. If your `GITHUB_TOKEN` has restrictions set please ensure you override them for the workflow to enable read access to `actions` and `contents`:
105
105
106
+
<!-- start permissions-in-v2 -->
106
107
```yaml
107
108
jobs:
108
109
myjob:
@@ -112,6 +113,43 @@ jobs:
112
113
contents: 'read'
113
114
actions: 'read'
114
115
```
116
+
<!-- end permissions-in-v2 -->
117
+
118
+
## Self-hosted runners
119
+
120
+
This Action supports usage of your own self-hosted runners, but since it uses GitHub APIs you will need to grant it explicit access rights:
121
+
122
+
<!-- self-hosted runners -->
123
+
```yaml
124
+
# ... more CI config ...
125
+
126
+
jobs:
127
+
myjob:
128
+
runs-on: self-hosted
129
+
container: my-org/my-amazing-image:v1.2.3-fresh
130
+
name: My Job
131
+
steps:
132
+
- uses: actions/checkout@v3
133
+
with:
134
+
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
0 commit comments