Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SECURITY.md, restrict github actions permissions #652

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Style check
permissions: {}

on:
workflow_dispatch:
Expand All @@ -9,16 +10,18 @@ on:

jobs:
style-check:
runs-on: ubuntu-20.04
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python version
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.6
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install -U clang-format==10.0.1.1 yapf==0.30.0 nbformat pydocstyle==6.0.0
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Ubuntu CI
permissions: {}

on:
workflow_dispatch:
Expand All @@ -7,13 +8,20 @@ on:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
NPROC: 3

jobs:
ubuntu:
runs-on: ubuntu-20.04
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
NPROC: 2
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -31,7 +39,7 @@ jobs:
restore-keys: |
${{ runner.os }}-ccache
- name: Set up Python version
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
# Pre-installed packages: https://github.com/actions/runner-images/tree/main/images
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.

## Reporting a Vulnerability
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).
Loading