Skip to content

Commit 63e5d18

Browse files
authored
ci: fix (#1984)
* ci: fix * another try
1 parent fd63605 commit 63e5d18

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout the website
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
repository: api-platform/website
1717
ref: main
@@ -20,7 +20,7 @@ jobs:
2020
id: yarn-cache-dir-path
2121
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
2222

23-
- uses: actions/cache@v3
23+
- uses: actions/cache@v4
2424
id: yarn-cache
2525
with:
2626
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,34 @@ on:
44
push:
55
pull_request:
66

7+
permissions: {}
8+
79
jobs:
810
build:
911
name: Lint
1012
runs-on: ubuntu-latest
1113

14+
permissions:
15+
contents: read
16+
packages: read
17+
statuses: write
18+
1219
steps:
1320
- name: Checkout
14-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
1524

1625
- name: Lint
1726
uses: github/super-linter/slim@v4
1827
env:
1928
VALIDATE_ALL_CODEBASE: false
2029
VALIDATE_EDITORCONFIG: false
2130
VALIDATE_JSCPD: false
22-
DEFAULT_BRANCH: main
31+
DEFAULT_BRANCH: "3.3"
2332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2433

25-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
2635
with:
2736
path: ~/.cache/pip
2837
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

0 commit comments

Comments
 (0)