Skip to content

Commit 473592d

Browse files
committed
Add SECURITY.md, restrict github actions permissions
1 parent b07a6a6 commit 473592d

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

.github/workflows/style.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Style check
2+
permissions: {}
23

34
on:
45
workflow_dispatch:
@@ -9,16 +10,18 @@ on:
910

1011
jobs:
1112
style-check:
12-
runs-on: ubuntu-20.04
13+
permissions:
14+
contents: read
15+
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout source code
15-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1619
with:
1720
submodules: true
1821
- name: Set up Python version
19-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2023
with:
21-
python-version: 3.6
24+
python-version: '3.10'
2225
- name: Install dependencies
2326
run: |
2427
python -m pip install -U clang-format==10.0.1.1 yapf==0.30.0 nbformat pydocstyle==6.0.0

.github/workflows/ubuntu.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Ubuntu CI
2+
permissions: {}
23

34
on:
45
workflow_dispatch:
@@ -7,13 +8,20 @@ on:
78
pull_request:
89
types: [opened, reopened, synchronize]
910

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
NPROC: 3
17+
1018
jobs:
1119
ubuntu:
12-
runs-on: ubuntu-20.04
20+
permissions:
21+
contents: read
22+
runs-on: ubuntu-latest
1323
strategy:
1424
fail-fast: false
15-
env:
16-
NPROC: 2
1725
steps:
1826
- name: Checkout source code
1927
uses: actions/checkout@v4
@@ -31,7 +39,7 @@ jobs:
3139
restore-keys: |
3240
${{ runner.os }}-ccache
3341
- name: Set up Python version
34-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
3543
with:
3644
python-version: "3.11"
3745
# Pre-installed packages: https://github.com/actions/runner-images/tree/main/images

SECURITY.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Security Policy
2+
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.
3+
4+
## Reporting a Vulnerability
5+
Please report any security vulnerabilities in this project utilizing the guidelines [here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html).

0 commit comments

Comments
 (0)