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 8686 build :
8787 runs-on : ubuntu-latest{% ifversion fpt or ghes > 3.1 or ghae or ghec %}
8888 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 %}
9094 steps :
9195 # This step checks out a copy of your repository.
9296 - name : Checkout repository
@@ -123,7 +127,11 @@ jobs:
123127 build:
124128 runs-on: ubuntu-latest{% ifversion fpt or ghes > 3.1 or ghae or ghec %}
125129 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 %}
127135 steps:
128136 - uses: actions/checkout@v2
129137 - name: Run npm install
You can’t perform that action at this time.
0 commit comments