|
25 | 25 | steps: |
26 | 26 | # Git Checkout |
27 | 27 | - name: Harden Runner |
28 | | - uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 |
| 28 | + uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 |
29 | 29 | with: |
30 | 30 | egress-policy: audit |
31 | 31 |
|
|
40 | 40 | id: ml |
41 | 41 | # You can override MegaLinter flavor used to have faster performances |
42 | 42 | # More info at https://megalinter.io/flavors/ |
43 | | - uses: oxsecurity/megalinter/flavors/python@1fc052d03c7a43c78fe0fee19c9d648b749e0c01 # v8.3.0 |
| 43 | + uses: oxsecurity/megalinter/flavors/python@ec124f7998718d79379a3c5b39f5359952baf21d # v8.4.2 |
44 | 44 | env: |
45 | 45 | # All available variables are described in documentation |
46 | 46 | # https://megalinter.io/configuration/ |
|
51 | 51 | # Upload MegaLinter artifacts |
52 | 52 | - name: Archive production artifacts |
53 | 53 | if: ${{ success() || failure() }} |
54 | | - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 |
| 54 | + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 |
55 | 55 | with: |
56 | 56 | name: MegaLinter reports |
57 | 57 | path: | |
|
62 | 62 | - name: Create Pull Request with applied fixes |
63 | 63 | id: cpr |
64 | 64 | 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') |
65 | | - uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 |
| 65 | + uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 |
66 | 66 | with: |
67 | 67 | token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} |
68 | 68 | commit-message: "[MegaLinter] Apply linters automatic fixes" |
|
80 | 80 | run: sudo chown -Rc $UID .git/ |
81 | 81 | - name: Commit and push applied linter fixes |
82 | 82 | 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') |
83 | | - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 |
| 83 | + uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0 |
84 | 84 | with: |
85 | 85 | branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} |
86 | 86 | commit_message: "[MegaLinter] Apply linters fixes" |
0 commit comments