Skip to content

Commit

Permalink
[SDL] Fix OpenSSF (#111)
Browse files Browse the repository at this point in the history
* Fix GH workflows

* Add security policy
  • Loading branch information
yatarkan authored Jun 18, 2024
1 parent 2fb4b0e commit e0c50e6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check-pr-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ name: "Check Pull Request Name"

on: [pull_request, push]

jobs:
permissions:
contents: read

jobs:
pr-name-check:
name: Check Pull Request Name
runs-on: ubuntu-20.04
if: github.event_name == 'pull_request'

steps:
- name: Compare PR Name to the Template
uses: actions/github-script@v5
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const prNameRegExp = /^(?:\[\d+\]\s?)+\w+.*/;
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Code Style

on:
push:
branches:
Expand All @@ -7,15 +8,17 @@ on:
branches:
- master

permissions:
contents: read

jobs:
pylint-code-check:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ 3.8 ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
run: |
sudo apt install python3-setuptools
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/update-pr-branch.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
name: 'Update PR Branch on PR Comment'

on:
issue_comment:
types: [created]

permissions:
contents: read

jobs:
update_pr_branch:
name: Update PR Branch on PR Comment
if: github.event.issue.pull_request != '' && github.event.comment.body == '/update'
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v2
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
token: ${{ secrets.ACTIONS_PAT }}
fetch-depth: 0
submodules: 'true'
- name: Fetch PR and target branch names
id: fetch_pr_and_target_branch
uses: actions/github-script@v3
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Report a Vulnerability

Please report security issues or vulnerabilities to the [Intel® Security Center].

For more information on how Intel® works to resolve security issues, see
[Vulnerability Handling Guidelines].

[Intel® Security Center]:https://www.intel.com/security

[Vulnerability Handling Guidelines]:https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html

0 comments on commit e0c50e6

Please sign in to comment.