Skip to content

Commit d466a58

Browse files
author
Diptorup Deb
authored
Merge pull request #1339 from IntelPython/fix/security_issues
Fix/security issues
2 parents c2860ca + cffc07b commit d466a58

12 files changed

+46
-115
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/black.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
push:
1010
branches: [main]
1111

12+
permissions: read-all
13+
1214
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1315
jobs:
1416
# This workflow contains a single job called "black"

.github/workflows/conda-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- main
1111
- release*
1212

13+
permissions: read-all
14+
1315
env:
1416
PACKAGE_NAME: numba-dpex
1517
MODULE_NAME: numba_dpex

.github/workflows/coverage.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,25 @@ on:
99
- environment/coverage.yml
1010
- pyproject.toml
1111

12+
permissions: read-all
13+
1214
jobs:
1315
main:
1416
name: Generate coverage and push to Coveralls.io
15-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-latest
18+
permissions:
19+
pull-requests: write
1620
defaults:
1721
run:
1822
shell: bash -l {0}
1923
steps:
2024
- name: Cancel Previous Runs
21-
uses: styfle/cancel-workflow-action@0.9.1
25+
uses: styfle/cancel-workflow-action@0.12.1
2226
with:
2327
access_token: ${{ github.token }}
2428

2529
- name: Checkout repo
26-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4.1.1
2731
with:
2832
fetch-depth: 0
2933

@@ -58,7 +62,7 @@ jobs:
5862
- name: Install coveralls
5963
shell: bash -l {0}
6064
run: |
61-
pip install coveralls==3.2.0
65+
pip install coveralls
6266
6367
- name: Upload coverage data to coveralls.io
6468
run: |

.github/workflows/coverity.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- main
66
workflow_dispatch:
77

8+
permissions: read-all
9+
810
jobs:
911
Coverity:
1012

.github/workflows/cpp_style_checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
push:
1010
branches: [master]
1111

12+
permissions: read-all
13+
1214
jobs:
1315
formatting-check:
1416
name: clang-format

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ on:
2626
buildkit_version:
2727
default: '0.11.6'
2828

29+
permissions: read-all
2930

3031
jobs:
3132
env:

.github/workflows/gh-pages.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,25 @@ on:
1313
- environment/docs.yml
1414
- .github/workflows/gh-pages.yml
1515

16+
permissions: read-all
17+
1618
jobs:
1719
main:
1820
if: ${{ !(github.event.pull_request && github.event.action == 'closed') }}
1921
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
pull-requests: write
2025
defaults:
2126
run:
2227
shell: bash -l {0}
2328

2429
steps:
25-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4.1.1
2631
with:
2732
fetch-depth: 0
2833

29-
- uses: conda-incubator/setup-miniconda@v2
34+
- uses: conda-incubator/setup-miniconda@v3.0.2
3035
with:
3136
python-version: '3.10'
3237
miniforge-variant: Mambaforge
@@ -46,7 +51,7 @@ jobs:
4651
run: make html
4752

4853
- name: GitHub Pages [main]
49-
uses: peaceiris/actions-gh-pages@v3
54+
uses: peaceiris/actions-gh-pages@v3.9.3
5055
if: ${{ github.ref == 'refs/heads/main' }}
5156
with:
5257
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -59,7 +64,7 @@ jobs:
5964
user_email: 'github-actions[bot]@users.noreply.github.com'
6065

6166
- name: GitHub Pages [PR]
62-
uses: peaceiris/actions-gh-pages@v3
67+
uses: peaceiris/actions-gh-pages@v3.9.3
6368
if: ${{ github.event.pull_request && github.event.action != 'closed' }}
6469
with:
6570
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -75,15 +80,15 @@ jobs:
7580
if: ${{ github.event.pull_request && github.event.action != 'closed' }}
7681
env:
7782
PR_NUM: ${{ github.event.number }}
78-
uses: mshick/add-pr-comment@v2
83+
uses: mshick/add-pr-comment@v2.8.2
7984
with:
8085
message: |
8186
Documentation preview: [show](https://intelpython.github.io/numba-dpex/pull/${{ env.PR_NUM }}).
8287
# repo-token: ${{ secrets.GITHUB_TOKEN }}
8388

8489
- name: Publish release
8590
if: startsWith(github.ref, 'refs/heads/release')
86-
uses: peaceiris/actions-gh-pages@v3
91+
uses: peaceiris/actions-gh-pages@v3.9.3
8792
with:
8893
github_token: ${{ secrets.GITHUB_TOKEN }}
8994
destination_dir : next_release
@@ -99,7 +104,7 @@ jobs:
99104
100105
- name: Publish tag
101106
if: startsWith(github.ref, 'refs/tags/')
102-
uses: peaceiris/actions-gh-pages@v3
107+
uses: peaceiris/actions-gh-pages@v3.9.3
103108
with:
104109
github_token: ${{ secrets.GITHUB_TOKEN }}
105110
destination_dir : ${{ steps.capture_tag.outputs.tag_number }}
@@ -110,9 +115,11 @@ jobs:
110115
clean:
111116
if: ${{ github.event.pull_request && github.event.action == 'closed' }}
112117
runs-on: ubuntu-latest
113-
118+
permissions:
119+
contents: write
120+
pull-requests: write
114121
steps:
115-
- uses: actions/checkout@v2
122+
- uses: actions/checkout@v4.1.1
116123
with:
117124
fetch-depth: 0
118125

@@ -132,7 +139,7 @@ jobs:
132139
git push tokened_docs gh-pages
133140
134141
- name: Comment PR [docs removed]
135-
uses: mshick/add-pr-comment@v1
142+
uses: mshick/add-pr-comment@v2.8.2
136143
with:
137144
message: |
138145
Documentation preview removed.

.github/workflows/license.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
push:
66
branches: [main]
77

8+
permissions: read-all
9+
810
jobs:
911
license:
1012
runs-on: ubuntu-latest
1113

1214
steps:
13-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4.1.1
1416
- uses: actions/setup-go@v3
1517
with:
1618
go-version: '1.18'

.github/workflows/merge-main-to-gold_2021.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)