Skip to content

Commit 3225ac8

Browse files
authored
Merge pull request #79 from mindsdb/set-actions-rights
Set actions rights
2 parents 03bafad + f7a3591 commit 3225ac8

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ jobs:
1010
# Push a new release to PyPI
1111
deploy_to_pypi:
1212
name: Publish to PyPI
13+
permissions:
14+
contents: read
1315
runs-on: mdb-dev
1416
if: github.actor != 'mindsdbadmin'
1517
steps:
1618
- uses: actions/checkout@v4
1719
- name: Set up Python
18-
uses: actions/setup-python@v5.1.0
20+
uses: actions/setup-python@v5.6.0
1921
with:
2022
python-version: ${{ vars.CI_PYTHON_VERSION }}
2123
- name: Install dependencies

.github/workflows/test_on_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ on:
77
jobs:
88
test:
99
runs-on: mdb-dev
10+
permissions:
11+
contents: read
1012
strategy:
1113
matrix:
1214
python-version: ['3.10']
1315
steps:
1416
- name: Checkout code
15-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1618
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5.6.0
1820
with:
1921
python-version: ${{ matrix.python-version }}
2022
- name: Install dependencies

.github/workflows/test_on_pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ on:
77

88
jobs:
99
test:
10+
permissions:
11+
contents: read
1012
runs-on: ${{ matrix.os }}
1113
strategy:
1214
matrix:
1315
os: [mdb-dev]
1416
python-version: ['3.8', '3.9', '3.10', '3.11']
1517
steps:
16-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1719

1820
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5.6.0
2022
with:
2123
python-version: ${{ matrix.python-version }}
2224

0 commit comments

Comments
 (0)