Skip to content

Commit 9450aa1

Browse files
authored
Upgrade GH workflow (#40)
1 parent 182b319 commit 9450aa1

File tree

3 files changed

+46
-74
lines changed

3 files changed

+46
-74
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: terraform-ci
2+
on:
3+
pull_request:
4+
permissions:
5+
actions: read
6+
checks: read
7+
contents: read
8+
pull-requests: write
9+
jobs:
10+
ci:
11+
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
12+
with:
13+
upload_sarif: false
14+
default_runner_override_label: self-hosted
15+
runner_label: platform-eng-ent
16+
secrets: inherit

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Autoupdate pre-commit configs and tflint aws plugin
2+
3+
on:
4+
# every sunday at midnight
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
# on demand
8+
workflow_dispatch:
9+
10+
# Request from Org admin to allow Github Action workflow to make PR under Settings > Actions > General
11+
permissions:
12+
actions: read
13+
checks: read
14+
contents: write #require this to write to repo
15+
pull-requests: write #require this to create PR
16+
17+
jobs:
18+
auto-update:
19+
runs-on:
20+
- self-hosted
21+
- platform-eng-ent
22+
steps:
23+
- uses: SPHTech-Platform/gha-pre-commit-autoupdate@testgh
24+
name: Update pre-commit config automatically
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: SPHTech-Platform/gha-tflint-aws-plugin-autoupdate@main
28+
name: Update tflint aws plugin automatically
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)