Skip to content

Commit 2b62f7c

Browse files
committed
Merge origin/develop into engine-config-regn — auto-resolve: prefer develop for conflicts
2 parents 1b605ad + ad9352d commit 2b62f7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5064
-2054
lines changed

.github/workflows/codeql.yml

Lines changed: 46 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Copyright (c) 2023, 2024 by Delphix. All rights reserved.
33
#
44
#
5+
#
6+
# Copyright (c) 2023, 2024 by Delphix. All rights reserved.
7+
#
8+
#
59
# For most projects, this workflow file will not need changing; you simply need
610
# to commit it to your repository.
711
#
@@ -17,71 +21,80 @@ name: "CodeQL"
1721

1822
on:
1923
push:
20-
branches: [ main, develop ]
24+
branches: [ "main", "**/*", "dependabot/**/*", "dlpx/**/*", "gh-readonly-queue/**/*", "projects/**/*" ]
2125
pull_request:
22-
# The branches below must be a subset of the branches above
23-
branches: [ "develop" ]
26+
branches: [ "main", "**/*", "dependabot/**/*", "dlpx/**/*", "gh-readonly-queue/**/*", "projects/**/*" ]
2427
schedule:
25-
- cron: '40 13 * * 5'
28+
- cron: '30 11 * * 1'
2629

2730
jobs:
2831
analyze:
29-
name: Analyze
32+
name: Analyze (${{ matrix.language }})
3033
# Runner size impacts CodeQL analysis time. To learn more, please see:
3134
# - https://gh.io/recommended-hardware-resources-for-running-codeql
3235
# - https://gh.io/supported-runners-and-hardware-resources
33-
# - https://gh.io/using-larger-runners
34-
# Consider using larger runners for possible analysis time improvements.
36+
# - https://gh.io/using-larger-runners (GitHub.com only)
37+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
3538
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3639
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3740
permissions:
41+
# required for all workflows
42+
security-events: write
43+
44+
# required to fetch internal or private CodeQL packs
45+
packages: read
46+
47+
# only required for workflows in private repositories
3848
actions: read
3949
contents: read
40-
security-events: write
4150

4251
strategy:
4352
fail-fast: false
4453
matrix:
45-
language: [ 'go' ]
46-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
47-
# Use only 'java' to analyze code written in Java, Kotlin or both
48-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
49-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
50-
54+
include:
55+
- language: go
56+
build-mode: autobuild
57+
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
58+
# Use `c-cpp` to analyze code written in C, C++ or both
59+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
60+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
61+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
62+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
63+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
64+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5165
steps:
5266
- name: Checkout repository
53-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
5468

5569
# Initializes the CodeQL tools for scanning.
5670
- name: Initialize CodeQL
57-
uses: github/codeql-action/init@v2
71+
uses: github/codeql-action/init@v3
5872
with:
5973
languages: ${{ matrix.language }}
60-
queries: security-extended,security-and-quality
74+
build-mode: ${{ matrix.build-mode }}
6175
# If you wish to specify custom queries, you can do so here or in a config file.
6276
# By default, queries listed here will override any specified in a config file.
6377
# Prefix the list here with "+" to use these queries and those in the config file.
6478

6579
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
66-
# queries: security-extended,security-and-quality
67-
80+
queries: security-extended,security-and-quality
6881

69-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
70-
# If this step fails, then you should remove it and run the build manually (see below)
71-
- if: matrix.language == 'go'
72-
name: Autobuild
73-
uses: github/codeql-action/autobuild@v2
82+
# If the analyze step fails for one of the languages you are analyzing with
83+
# "We were unable to automatically build your code", modify the matrix above
84+
# to set the build mode to "manual" for that language. Then modify this step
85+
# to build your code.
7486
# ℹ️ Command-line programs to run using the OS shell.
7587
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
76-
77-
# If the Autobuild fails above, remove it and uncomment the following three lines.
78-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
79-
80-
# - run: |
81-
# echo "Run, Build Application using script"
82-
# ./location_of_script_within_repo/buildscript.sh
83-
88+
- if: matrix.build-mode == 'manual'
89+
shell: bash
90+
run: |
91+
echo 'If you are using a "manual" build mode for one or more of the' \
92+
'languages you are analyzing, replace this with the commands to build' \
93+
'your code, for example:'
94+
echo ' make bootstrap'
95+
echo ' make release'
96+
exit 1
8497
- name: Perform CodeQL Analysis
85-
uses: github/codeql-action/analyze@v2
98+
uses: github/codeql-action/analyze@v3
8699
with:
87100
category: "/language:${{matrix.language}}"

.github/workflows/release.yml

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,41 @@
1-
# This GitHub action can publish assets for release when a tag is created.
2-
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
3-
#
4-
# This uses an action (crazy-max/ghaction-import-gpg) that assumes you set your
5-
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
6-
# secret. If you would rather own your own GPG handling, please fork this action
7-
# or use an alternative one for key handling.
8-
#
9-
# You will need to pass the `--batch` flag to `gpg` in your signing step
10-
# in `goreleaser` to indicate this is being used in a non-interactive mode.
11-
#
12-
name: release
1+
# Terraform Provider release workflow.
2+
name: Release
3+
4+
# This GitHub action creates a release when a tag that matches the pattern
5+
# "v*" (e.g. v0.1.0) is created.
136
on:
147
push:
158
tags:
169
- 'v*'
10+
11+
# Releases need permissions to read and write the repository contents.
12+
# GitHub considers creating releases and uploading assets as writing contents.
1713
permissions:
1814
contents: write
15+
1916
jobs:
2017
goreleaser:
2118
runs-on: ubuntu-latest
2219
steps:
23-
-
24-
name: Checkout
25-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
26-
-
27-
name: Unshallow
28-
run: git fetch --prune --unshallow
29-
-
30-
name: Set up Go
31-
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
with:
22+
# Allow goreleaser to access older tag information.
23+
fetch-depth: 0
24+
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
3225
with:
3326
go-version-file: 'go.mod'
3427
cache: true
35-
-
36-
name: Import GPG key
37-
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549 # v5.2.0
28+
- name: Import GPG key
29+
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
3830
id: import_gpg
3931
with:
4032
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4133
passphrase: ${{ secrets.PASSPHRASE }}
42-
-
43-
name: Run GoReleaser
44-
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
34+
- name: Run GoReleaser
35+
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
4536
with:
46-
version: latest
47-
args: release --rm-dist
37+
args: release --clean
4838
env:
49-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
50-
# GitHub sets this automatically
39+
# GitHub sets the GITHUB_TOKEN secret automatically.
5140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
env:
4-
- PROVIDER_VERSION=3.3.0-beta
5+
- PROVIDER_VERSION=4.1.0
56
before:
67
hooks:
78
# this is just an example and not a requirement for provider building/publishing
89
- go mod tidy
910
snapshot:
10-
name_template: '{{ .Env.PROVIDER_VERSION }}'
11+
version_template: '{{ .Env.PROVIDER_VERSION }}'
1112
builds:
1213
- env:
1314
# goreleaser does not work with CGO, it could also complicate
14-
# usage by users in CI/CD systems like Terraform Cloud where
15+
# usage by users in CI/CD systems like HCP Terraform where
1516
# they are unable to install libraries.
1617
- CGO_ENABLED=0
1718
mod_timestamp: '{{ .CommitTimestamp }}'
@@ -41,7 +42,7 @@ builds:
4142
- CP_TARGET={{ .Target }}
4243
- CP_VERSION={{ .Env.PROVIDER_VERSION }}
4344
archives:
44-
- format: zip
45+
- formats: [ 'zip' ]
4546
name_template: '{{ .ProjectName }}_{{ .Env.PROVIDER_VERSION }}_{{ .Os }}_{{ .Arch }}'
4647
checksum:
4748
extra_files:
@@ -68,4 +69,4 @@ release:
6869
# If you want to manually examine the release before its live, uncomment this line:
6970
# draft: true
7071
changelog:
71-
skip: true
72+
disable: true

.whitesource

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"scanSettings": {
3+
"configMode": "AUTO",
4+
"configExternalURL": "",
5+
"projectToken": "",
6+
"enableLicenseViolations": "true",
7+
"displayLicenseViolations": "true",
8+
"enableIaC": "true",
9+
"baseBranches": []
10+
},
11+
"scanSettingsSAST": {
12+
"enableScan": true,
13+
"scanPullRequests": true,
14+
"incrementalScan": true,
15+
"baseBranches": [],
16+
"snippetSize": 10
17+
},
18+
"checkRunSettings": {
19+
"vulnerableCheckRunConclusionLevel": "failure",
20+
"displayMode": "diff",
21+
"useMendCheckNames": true
22+
},
23+
"checkRunSettingsSAST": {
24+
"checkRunConclusionLevel": "failure",
25+
"severityThreshold": "high"
26+
},
27+
"issueSettings": {
28+
"minSeverityLevel": "LOW",
29+
"issueType": "DEPENDENCY"
30+
},
31+
"issueSettingsSAST": {
32+
"minSeverityLevel": "high",
33+
"issueType": "repo"
34+
},
35+
"remediateSettings": {
36+
"workflowRules": {
37+
"enabled": true
38+
}
39+
},
40+
"imageSettings":{
41+
"imageTracing":{
42+
"enableImageTracingPR": false,
43+
"addRepositoryCoordinate": false,
44+
"addDockerfilePath": false,
45+
"addMendIdentifier": false
46+
}
47+
}
48+
}

GNUmakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ HOSTNAME=delphix.com
33
NAMESPACE=dct
44
NAME=delphix
55
BINARY=terraform-provider-${NAME}
6-
VERSION=5.0.0-beta
6+
VERSION=4.1.0
77
OS_ARCH=darwin_arm64
88

99
default: install
@@ -13,6 +13,7 @@ build:
1313

1414
release:
1515
GOOS=darwin GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_darwin_amd64
16+
GOOS=darwin GOARCH=arm64 go build -o ./bin/${BINARY}_${VERSION}_darwin_arm64
1617
GOOS=freebsd GOARCH=386 go build -o ./bin/${BINARY}_${VERSION}_freebsd_386
1718
GOOS=freebsd GOARCH=amd64 go build -o ./bin/${BINARY}_${VERSION}_freebsd_amd64
1819
GOOS=freebsd GOARCH=arm go build -o ./bin/${BINARY}_${VERSION}_freebsd_arm

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Terraform Provider for Delphix enables Terraform to create and manage Delphix Continuous Data &
88
Continuous Compliance infrastructure using the Delphix Control Tower (DCT) APIs.
99

10-
Full implementation directions can be found on the [Delphix Ecosystem Documentation](https://ecosystem.delphix.com/docs/overview-3) and [Terraform Provider Registry](https://registry.terraform.io/providers/delphix-integrations/delphix/latest/docs).
10+
Full implementation directions can be found on the [Delphix Ecosystem Documentation](https://help.delphix.com/eh/current/Content/Ecoystem/Terraform.htm) and [Terraform Provider Registry](https://registry.terraform.io/providers/delphix-integrations/delphix/latest/docs).
1111

1212
## Prerequisites
1313

0 commit comments

Comments
 (0)