Skip to content

Commit a47dba1

Browse files
dmachmcepl
authored andcommitted
GHA: Migrate to actions/checkout@v4
1 parent 0fcde37 commit a47dba1

File tree

6 files changed

+39
-14
lines changed

6 files changed

+39
-14
lines changed

.github/workflows/build-install.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ jobs:
7676
rpm -q dnf5 >/dev/null || dnf -y install dnf-plugins-core || :
7777
rpm -q dnf5 >/dev/null && dnf -y install dnf5-plugins || :
7878
79-
- uses: actions/checkout@v3
79+
- uses: actions/checkout@v4
8080
with:
8181
fetch-depth: 0
82+
persist-credentials: false
8283

8384
- name: 'Install build dependencies (OpenSUSE/SLE)'
8485
if: ${{ contains(matrix.container, '/opensuse/') || contains(matrix.container, '/bci/bci-base') }}
@@ -129,7 +130,9 @@ jobs:
129130
sudo apt-get -y upgrade
130131
sudo apt-get -y --no-install-recommends install git python3-pip python3-rpm
131132
132-
- uses: actions/checkout@v3
133+
- uses: actions/checkout@v4
134+
with:
135+
persist-credentials: false
133136

134137
- name: 'Install osc from pip'
135138
run: |
@@ -152,7 +155,9 @@ jobs:
152155
sudo apt-get -y update
153156
sudo apt-get -y --no-install-recommends install git python3-pip python3-rpm python3-virtualenv
154157
155-
- uses: actions/checkout@v3
158+
- uses: actions/checkout@v4
159+
with:
160+
persist-credentials: false
156161

157162
- name: 'Initialize virtualenv'
158163
run: |

.github/workflows/codeql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929

3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
3335

3436
- name: Initialize CodeQL
3537
uses: github/codeql-action/init@v2

.github/workflows/container-image.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
echo "$GHCR_TOKEN" | podman login ghcr.io -u "$GHCR_USER" --password-stdin
2121
2222
- name: "Checkout sources"
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
2426

2527
# This step is necessary to avoid the following error during podman build:
2628
# (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80

.github/workflows/linters.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
mypy:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022
- uses: actions/setup-python@v4
2123
- run: pip config set global.break-system-packages 1
2224
- run: pip install mypy
@@ -27,9 +29,10 @@ jobs:
2729
darker:
2830
runs-on: ubuntu-latest
2931
steps:
30-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3133
with:
3234
fetch-depth: 0
35+
persist-credentials: false
3336
- uses: actions/setup-python@v4
3437
- uses: akaihola/[email protected]
3538
with:
@@ -48,7 +51,9 @@ jobs:
4851
sudo pip3 config set global.break-system-packages 1
4952
sudo pip3 install pylint
5053
51-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
55+
with:
56+
persist-credentials: false
5257

5358
- name: 'Run pylint --errors-only'
5459
run: |
@@ -77,19 +82,22 @@ jobs:
7782
sudo pip3 config set global.break-system-packages 1
7883
sudo pip3 install pylint
7984
80-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8186
with:
8287
path: osc-pr
88+
persist-credentials: false
8389

84-
- uses: actions/checkout@v3
90+
- uses: actions/checkout@v4
8591
with:
8692
ref: ${{ github.event.pull_request.base.sha }}
8793
path: osc-master
94+
persist-credentials: false
8895

89-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@v4
9097
with:
9198
repository: ${{ matrix.plugin_repository }}
9299
path: plugin
100+
persist-credentials: false
93101

94102
- name: 'Install dependencies from pip'
95103
run: |

.github/workflows/pypi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1921
- name: Set up Python 3.12
2022
uses: actions/setup-python@v5
2123
with:

.github/workflows/tests.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
sudo apt-get -y --no-install-recommends install git-lfs
2929
sudo apt-get -y --no-install-recommends install diffstat diffutils git-core python3 python3-cryptography python3-pip python3-rpm python3-ruamel.yaml python3-setuptools python3-urllib3
3030
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
3234

3335
- name: 'Change owner to root:root'
3436
run: |
@@ -114,7 +116,9 @@ jobs:
114116
apt-get -y --no-install-recommends install git-lfs
115117
apt-get -y --no-install-recommends install diffstat diffutils git-core python3 python3-cryptography python3-pip python3-rpm python3-ruamel.yaml python3-setuptools python3-urllib3
116118
117-
- uses: actions/checkout@v3
119+
- uses: actions/checkout@v4
120+
with:
121+
persist-credentials: false
118122

119123
- name: 'Run unit tests'
120124
run: |
@@ -153,7 +157,9 @@ jobs:
153157
sudo ln -s /usr/local/lib/*/*/obs_scm_bridge /usr/lib/obs/service/obs_scm_bridge
154158
155159
- name: "Checkout sources"
156-
uses: actions/checkout@v3
160+
uses: actions/checkout@v4
161+
with:
162+
persist-credentials: false
157163

158164
- name: "Pull container image"
159165
run: |

0 commit comments

Comments
 (0)