Skip to content

Commit

Permalink
Merge pull request #1128 from zama-ai/ci/action-lints
Browse files Browse the repository at this point in the history
Lint action files
  • Loading branch information
youben11 authored Oct 31, 2024
2 parents 2447acf + e9eb153 commit 263f5d0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/action-pin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Action Pin

on:
pull_request:
push:
branches:
- main

jobs:
check-action-pin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@0901cf7b71c7ea6261ec69a3dc2bd3f9264f893e # v3.0.12
with:
allowlist: |
slsa-framework/slsa-github-generator
16 changes: 16 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Action Lint

on:
pull_request:
push:
branches:
- main

jobs:
action-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: actionlint
uses: raven-actions/actionlint@01fce4f43a270a612932cb1c64d40505a029f821 # v2.0.0
2 changes: 1 addition & 1 deletion .github/workflows/linelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Linelint
uses: fernandrone/[email protected]
uses: fernandrone/linelint@8136e0fa9997122d80f5f793e0bb9a45e678fbb1 # 0.0.4
id: linelint
2 changes: 1 addition & 1 deletion .github/workflows/markdown_link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
with:
use-quiet-mode: 'yes'
Expand Down

0 comments on commit 263f5d0

Please sign in to comment.