File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
content/code-security/code-scanning/integrating-with-code-scanning Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 86
86
build :
87
87
runs-on : ubuntu-latest{% ifversion fpt or ghes > 3.1 or ghae or ghec %}
88
88
permissions :
89
- security-events : write{% endif %}
89
+ # required for all workflows
90
+ security-events : write
91
+ # only required for workflows in private repositories
92
+ actions : read
93
+ contents : read{% endif %}
90
94
steps :
91
95
# This step checks out a copy of your repository.
92
96
- name : Checkout repository
@@ -123,7 +127,11 @@ jobs:
123
127
build:
124
128
runs-on: ubuntu-latest{% ifversion fpt or ghes > 3.1 or ghae or ghec %}
125
129
permissions:
126
- security-events: write{% endif %}
130
+ # required for all workflows
131
+ security-events: write
132
+ # only required for workflows in private repositories
133
+ actions: read
134
+ contents: read{% endif %}
127
135
steps:
128
136
- uses: actions/checkout@v2
129
137
- name: Run npm install
You can’t perform that action at this time.
0 commit comments