-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding s3 dashboard module renaming variable.tf CCL-898 json config updating visual config updating width of tiles adding .github adding .github adding .github CCL-898 golden dashboards CCL-898 added mks dashboards CCL-898 latest CCL-898-test latest classic dashboards adding varibales file amending README file adding varibles correcting readme file removing .ided/,DSstore etc removing .ided/,DSstore etc moving terraform files into root folder chaning workflow name chaning workflow name
- Loading branch information
1 parent
f09fb34
commit 77caea7
Showing
12 changed files
with
2,520 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "(GHA)" | ||
reviewers: | ||
- "UKHomeOffice/core-cloud-devops" | ||
labels: | ||
- "dependencies" | ||
- "patch" | ||
- package-ecosystem: "terraform" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "(TF)" | ||
reviewers: | ||
- "UKHomeOffice/core-cloud-devops" | ||
labels: | ||
- "dependencies" | ||
- "patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Validate Terraform with Trivy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
RunTerraformValidation: | ||
name: Scan Terraform Config | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone the Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Results have to be a table as the organisation does not have Advanced Security license. | ||
- name: Scan Terraform Config | ||
uses: aquasecurity/trivy-action@0.19.0 | ||
with: | ||
scan-type: 'config' | ||
exit-code: '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Check PR for SemVer Label' | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- unlabeled | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: read | ||
contents: read | ||
|
||
jobs: | ||
semver-check: | ||
name: 'Check PR for SemVer Label' | ||
if: | | ||
contains(github.event.pull_request.labels.*.name, 'skip-release') == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Parse the SemVer label | ||
id: label | ||
uses: UKHomeOffice/match-label-action@v1 | ||
with: | ||
labels: minor,major,patch | ||
mode: singular | ||
|
||
- name: Calculate SemVer value | ||
id: calculate | ||
uses: UKHomeOffice/semver-calculate-action@v2 | ||
with: | ||
increment: ${{ steps.label.outputs.matchedLabels }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'SemVer Tag on Main Merge' | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
permissions: | ||
pull-requests: read | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
semver-tag: | ||
name: 'Tag Repository with SemVer' | ||
if: | | ||
github.event.pull_request.merged == true && | ||
contains(github.event.pull_request.labels.*.name, 'skip-release') == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Parse the SemVer label | ||
id: label | ||
uses: UKHomeOffice/match-label-action@v1 | ||
with: | ||
labels: minor,major,patch | ||
mode: singular | ||
|
||
- name: Calculate SemVer value | ||
id: calculate | ||
uses: UKHomeOffice/semver-calculate-action@v2 | ||
with: | ||
increment: ${{ steps.label.outputs.matchedLabels }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Tag Repository | ||
uses: UKHomeOffice/semver-tag-action@v4 | ||
with: | ||
tag: ${{ steps.calculate.outputs.version }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
**/.terraform* | ||
**/.terragrunt* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
crash.*.log | ||
|
||
# Exclude all .tfvars files, which are likely to contain sensitive data, such as | ||
# password, private keys, and other secrets. These should not be part of version | ||
# control as they are data points which are potentially sensitive and subject | ||
# to change depending on the environment. | ||
*.tfvars | ||
*.tfvars.json | ||
|
||
# Ignore override files as they are usually used to override resources locally and so | ||
# are not checked in | ||
override.tf | ||
override.tf.json | ||
*_override.tf | ||
*_override.tf.json | ||
|
||
# Include override files you do wish to add to version control using negated pattern | ||
# !example_override.tf | ||
|
||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan | ||
# example: *tfplan* | ||
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc | ||
|
||
*.env | ||
|
||
__dont_track* | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# core-cloud-dynatrace-golden-dashboards-terraform | ||
Note: as we dont have any metrics in Dynatarce as of yet, these templates do not contain the dimensions for now, these will be updated once we have got metrics coming into dynatrace. |
Oops, something went wrong.