-
Notifications
You must be signed in to change notification settings - Fork 156
52 lines (49 loc) · 1.21 KB
/
build-lint-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build, lint and test
on:
pull_request:
branches:
- main
merge_group:
branches:
- main
push:
branches:
- main
permissions:
id-token: write
actions: read
contents: read
security-events: write
deployments: write
jobs:
git-secrets:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
name: Checkout code with history
with:
fetch-depth: 100
- name: Install git-secrets
run: |
wget -O /usr/local/bin/git-secrets https://raw.githubusercontent.com/awslabs/git-secrets/master/git-secrets
chmod +x /usr/local/bin/git-secrets
git secrets --register-aws --global
- name: Run git-secrets
run: |
git rev-parse HEAD
git secrets --scan-history
build:
uses: cloudscape-design/actions/.github/workflows/build-lint-test.yml@main
secrets: inherit
with:
artifact-path: lib/static-default
artifact-name: dev-pages
deploy:
needs: build
uses: cloudscape-design/actions/.github/workflows/deploy.yml@main
secrets: inherit
with:
artifact-name: dev-pages
deployment-path: lib/static-default