Skip to content

Commit bf7fa39

Browse files
committed
chore: update of common workflows
1 parent 31de134 commit bf7fa39

File tree

5 files changed

+25
-14
lines changed

5 files changed

+25
-14
lines changed

.github/workflows/automatic-pr-labeler.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
if: (github.event.pull_request.merged == false) && (github.event.pull_request.user.login != 'dependabot[bot]') && (github.event.pull_request.user.login != 'github-actions[bot]')
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
with:
29+
persist-credentials: false
2830

2931
- name: "Execute assign labels"
3032
id: action-assign-labels
@@ -42,4 +44,4 @@ jobs:
4244
echo "⚠️ Pull request from fork! ⚠️";
4345
echo "Labels will not be applied to PR. Assign them manually please.";
4446
echo "Labels to assign: ${{ steps.action-assign-labels.outputs.labels-next }}";
45-
} >> $GITHUB_STEP_SUMMARY
47+
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/cla.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
types: [opened, closed, synchronize]
88

99
permissions:
10-
actions: write
1110
contents: read
12-
pull-requests: write
13-
statuses: write
1411

1512
jobs:
1613
CLAAssistant:
14+
if: github.event.pull_request.draft == false
15+
permissions:
16+
actions: write
17+
contents: write
18+
pull-requests: write
19+
statuses: write
1720
runs-on: ubuntu-latest
1821
steps:
1922
- name: "CLA Assistant"

.github/workflows/pr-conventional-commits.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
name: Conventional Commits
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
with:
21+
persist-credentials: false
2022

2123
- uses: webiny/[email protected]

.github/workflows/pr-lint-title.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
name: Validate PR title
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: amannn/action-semantic-pull-request@v5
21+
- uses: amannn/action-semantic-pull-request@v6
2222
env:
2323
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/super-linter.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: "Get the common linters configuration"
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3737
with:
3838
ref: main # fix/superlinter-config
3939
repository: netcracker/.github
40+
persist-credentials: false
4041
sparse-checkout: |
4142
config/linters
42-
- name: "Upload the common linters configsuration"
43-
uses: actions/upload-artifact@v4
43+
- name: "Upload the common linters configuration"
44+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4445
with:
4546
name: linter-config
4647
path: "${{ github.workspace }}/config"
@@ -55,12 +56,13 @@ jobs:
5556
statuses: write
5657
steps:
5758
- name: Checkout code
58-
uses: actions/checkout@v4
59+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5960
with:
6061
# Full git history is needed to get a proper list of changed files within `super-linter`
6162
fetch-depth: 0
63+
persist-credentials: false
6264
- name: "Get the common linters configuration"
63-
uses: actions/download-artifact@v4
65+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
6466
id: download
6567
with:
6668
name: linter-config
@@ -69,7 +71,7 @@ jobs:
6971
if: ${{ steps.download.outputs.download-path != '' }}
7072
run: |
7173
mkdir -p ./.github/linters
72-
cp --update=none -vR /tmp/linter-config/linters/* ./.github/linters
74+
cp --update=none -vRT /tmp/linter-config/linters ./.github/linters
7375
7476
- name: "Load super-linter environment file"
7577
shell: bash
@@ -87,8 +89,10 @@ jobs:
8789
fi
8890
8991
- name: Lint Code Base
90-
uses: super-linter/super-linter/slim@v7.3.0
92+
uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0
9193
env:
9294
VALIDATE_ALL_CODEBASE: ${{ inputs.full_scan || false }}
9395
# To report GitHub Actions status checks
9496
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
DEFAULT_BRANCH: ${{ github.event.pull_request.base.ref || github.event.push.ref }}
98+

0 commit comments

Comments
 (0)