Skip to content

Commit 0924d37

Browse files
committed
pre-commits and housekeeping
1 parent 3c54aa3 commit 0924d37

3 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: cd source/secured-headers/ && zip -r ../../s-headers.zip index.js && cd ../../
5858
- name: Package Release
5959
run: zip -r packaged.zip -@ < ci/include.lst
60-
- name: Upload Release
61-
run: aws s3 cp packaged.zip s3://$CFN_BUCKET/amazon-cloudfront-secure-static-site/v${{ env.THIS_VERSION }}/amazon-cloudfront-secure-static-site.zip
60+
#- name: Upload Release
61+
# run: aws s3 cp packaged.zip s3://$CFN_BUCKET/amazon-cloudfront-secure-static-site/v${{ env.THIS_VERSION }}/amazon-cloudfront-secure-static-site.zip
6262
env:
6363
CFN_BUCKET: ${{ secrets.CFN_BUCKET }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
**/.zip
88
**/tmp
99
**/out-tsc
10-
/templates
1110
**/settings.js
11+
**/packaged.template
1212

1313
# dependencies
1414
**/node_modules
@@ -22,6 +22,7 @@
2222
# misc
2323
**/npm-debug.log
2424
**/testem.log
25+
**/.env
2526
# package-lock.json
2627
**/.vscode/settings.json
2728
**/setenv.sh

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
repos:
5+
# General
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v2.4.0
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-yaml
12+
- id: check-added-large-files
13+
- id: pretty-format-json
14+
args: [--autofix, --indent, '4']
15+
- id: no-commit-to-branch
16+
args: ['--branch', 'master']
17+
18+
# Secrets
19+
- repo: https://github.com/awslabs/git-secrets
20+
rev: 5e28df337746db4f070c84f7069d365bfd0d72a8
21+
hooks:
22+
- id: git-secrets
23+
24+
# CloudFormation
25+
- repo: https://github.com/aws-cloudformation/cfn-python-lint
26+
rev: v0.27.1
27+
hooks:
28+
- id: cfn-python-lint
29+
name: AWS CloudFormation Linter
30+
files: \.(template)$
31+
args: [--ignore-checks=W3002]

0 commit comments

Comments
 (0)