@@ -26,21 +26,21 @@ jobs:
26
26
27
27
steps :
28
28
- name : Checkout repo
29
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
29
+ uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
30
30
with :
31
31
token : ${{ secrets.GITHUB_TOKEN }}
32
32
fetch-depth : 0
33
33
34
34
- name : Lint
35
35
id : ml
36
- uses : oxsecurity/megalinter@c364436149b0ef3578bd24fa38ed9aa23af884db
36
+ uses : oxsecurity/megalinter@93700f8c21c59ea784a32abe23896e49e54463b8 # v6.22.2
37
37
env :
38
38
VALIDATE_ALL_CODEBASE : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
39
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
40
41
41
- name : Upload report
42
42
if : ${{ success() }} || ${{ failure() }}
43
- uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
43
+ uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
44
44
with :
45
45
name : Lint Report
46
46
path : |
50
50
- name : Create pull request with applied fixes
51
51
id : cpr
52
52
if : steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
53
- uses : peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04
53
+ uses : peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
54
54
with :
55
55
token : ${{ secrets.GITHUB_TOKEN }}
56
56
commit-message : " Apply lint fixes"
67
67
run : sudo chown -Rc $UID .git/
68
68
- name : Commit and push applied lint fixes
69
69
if : steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
70
- uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
70
+ uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
71
71
with :
72
72
branch : ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
73
73
commit_message : " Apply lint fixes"
0 commit comments