@@ -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
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
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