diff --git a/.github/workflows/check-pr-name.yml b/.github/workflows/check-pr-name.yml index 4a8a1bc..fd60074 100644 --- a/.github/workflows/check-pr-name.yml +++ b/.github/workflows/check-pr-name.yml @@ -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+.*/; diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 7dd7bd5..303b740 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -1,4 +1,5 @@ name: Code Style + on: push: branches: @@ -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 diff --git a/.github/workflows/update-pr-branch.yml b/.github/workflows/update-pr-branch.yml index fe14f44..29b94fa 100644 --- a/.github/workflows/update-pr-branch.yml +++ b/.github/workflows/update-pr-branch.yml @@ -1,7 +1,12 @@ 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 @@ -9,14 +14,14 @@ jobs: 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: | diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..eb482d9 --- /dev/null +++ b/SECURITY.md @@ -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