Skip to content

Commit 74f7f5a

Browse files
committed
feat(ci): add actionlint in pre-commit hook
1 parent 1b85b0b commit 74f7f5a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/reusable_export_pr_details.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ on:
44
workflow_call:
55
inputs:
66
record_pr_workflow_id:
7+
description: "Record PR workflow execution ID to download PR details"
78
required: true
89
type: number
910
workflow_origin: # see https://github.com/awslabs/aws-lambda-powertools-python/issues/1349
11+
description: "Repository full name for runner integrity"
1012
required: true
1113
type: string
1214
secrets:
1315
token:
16+
description: "GitHub Actions temporary and scoped token"
1417
required: true
1518
# Map the workflow outputs to job outputs
1619
outputs:

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ repos:
3939
hooks:
4040
- id: cfn-python-lint
4141
files: examples/.*\.(yaml|yml)$
42+
- repo: https://github.com/rhysd/actionlint
43+
rev: v1.6.16
44+
hooks:
45+
- id: actionlint
46+
args: [-pyflakes=]

0 commit comments

Comments
 (0)