Skip to content

Terraform provider configuration errors and role assignment output reference #1276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 181 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
d42f5c2
Add .whitesource configuration file
mend-bolt-for-github[bot] Apr 16, 2025
cfbafd7
Merge pull request #1 from joseguzman1337/whitesource/configure
joseguzman1337 Apr 16, 2025
b4b181e
feat/add-source
joseguzman1337 Apr 16, 2025
d4ca963
feat/add-source
joseguzman1337 Apr 16, 2025
312e360
feat/add-source
joseguzman1337 Apr 16, 2025
80c3b4c
feat/add-source
joseguzman1337 Apr 16, 2025
d13e631
Create codeql.yml
joseguzman1337 Apr 16, 2025
093ac40
chore(deps): bump github/super-linter from 6 to 7
dependabot[bot] Apr 16, 2025
7083e59
chore(deps): bump actions/create-github-app-token from 1 to 2
dependabot[bot] Apr 16, 2025
2690b6c
chore(deps): bump ossf/scorecard-action from 2.3.1 to 2.4.1
dependabot[bot] Apr 16, 2025
1c97df4
chore(deps): bump actions/upload-artifact
dependabot[bot] Apr 16, 2025
f59eaf9
Merge pull request #2 from joseguzman1337/dependabot/github_actions/g…
joseguzman1337 Apr 16, 2025
8259f70
Merge pull request #3 from joseguzman1337/dependabot/github_actions/a…
joseguzman1337 Apr 16, 2025
bec4d3d
Merge pull request #4 from joseguzman1337/dependabot/github_actions/o…
joseguzman1337 Apr 16, 2025
69134d3
Merge pull request #5 from joseguzman1337/dependabot/github_actions/a…
joseguzman1337 Apr 16, 2025
a623e74
chore(deps): bump the go_modules group across 1 directory with 2 updates
dependabot[bot] Apr 16, 2025
16f523d
Create FUNDING.yml
joseguzman1337 Apr 16, 2025
11ee28f
Merge pull request #6 from joseguzman1337/dependabot/go_modules/tests…
joseguzman1337 Apr 16, 2025
7dc2764
Create readme.md
joseguzman1337 Apr 16, 2025
842ab63
feat/add-source
joseguzman1337 Apr 16, 2025
5104544
feat/add-source
joseguzman1337 Apr 16, 2025
97f0cf2
feat/add-source
joseguzman1337 Apr 16, 2025
5198802
feat/add-source
joseguzman1337 Apr 16, 2025
673bbf8
feat/add-source
joseguzman1337 Apr 16, 2025
31a5894
feat/add-source
joseguzman1337 Apr 16, 2025
7862180
feat/add-source
joseguzman1337 Apr 16, 2025
56220b5
feat/add-source
joseguzman1337 Apr 16, 2025
1b4b1bc
feat/add-source
joseguzman1337 Apr 16, 2025
12b47d5
feat/add-source
joseguzman1337 Apr 16, 2025
7baf423
chore(deps): bump actions/upload-artifact from 3.2.1.pre.node20 to 4.6.2
dependabot[bot] Apr 16, 2025
ae8daae
feat/add-source
joseguzman1337 Apr 16, 2025
7a3b8a8
feat/add-source
joseguzman1337 Apr 16, 2025
15bbfc8
feat/add-source
joseguzman1337 Apr 16, 2025
bbdc66d
Merge branch 'main' into dependabot/github_actions/actions/upload-art…
joseguzman1337 Apr 16, 2025
408c9df
Merge pull request #8 from joseguzman1337/dependabot/github_actions/a…
joseguzman1337 Apr 16, 2025
9a76da3
chore(deps): bump golang.org/x/net
dependabot[bot] Apr 16, 2025
17b77ae
Merge pull request #9 from joseguzman1337/dependabot/go_modules/tests…
joseguzman1337 Apr 16, 2025
872cd78
[StepSecurity] Apply security best practices
step-security-bot Apr 16, 2025
7754c3f
Merge pull request #10 from step-security-bot/chore/GHA-162125-stepse…
joseguzman1337 Apr 16, 2025
3476c32
chore(deps): bump github/codeql-action from 3.25.8 to 3.28.15
dependabot[bot] Apr 16, 2025
e8b3b3b
chore(deps): bump actions/checkout from 4.1.1 to 4.2.2
dependabot[bot] Apr 16, 2025
0f741c6
chore(deps): bump github.com/stretchr/testify in /tests/terratest
dependabot[bot] Apr 16, 2025
709bbc5
chore(deps): bump github.com/Azure/terratest-terraform-fluent
dependabot[bot] Apr 16, 2025
5a4033e
Merge pull request #11 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 16, 2025
49b95a3
Merge branch 'main' into dependabot/github_actions/actions/checkout-4…
joseguzman1337 Apr 16, 2025
f0db47e
Merge pull request #12 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 16, 2025
82eec71
Merge branch 'main' into dependabot/go_modules/tests/terratest/github…
joseguzman1337 Apr 16, 2025
74ca9ca
Merge pull request #13 from joseguzman1337/dependabot/go_modules/test…
joseguzman1337 Apr 16, 2025
05b4590
feat/add-source
joseguzman1337 Apr 16, 2025
9d0a6c5
feat/add-source
joseguzman1337 Apr 16, 2025
50a7db2
feat/add-source
joseguzman1337 Apr 16, 2025
d96616b
feat/add-source
joseguzman1337 Apr 16, 2025
b81c56f
feat/add-source
joseguzman1337 Apr 16, 2025
376a2cb
feat/add-source
joseguzman1337 Apr 16, 2025
8a5ebbf
feat/add-source
joseguzman1337 Apr 16, 2025
0207374
Create snyk-infrastructure.yml
joseguzman1337 Apr 17, 2025
d5c21e3
Create snyk-container.yml
joseguzman1337 Apr 17, 2025
97579ed
Create snyk-security.yml
joseguzman1337 Apr 17, 2025
074da88
Create prisma.yml
joseguzman1337 Apr 17, 2025
b9787ce
Create ethicalcheck.yml
joseguzman1337 Apr 17, 2025
085d82f
Create osv-scanner.yml
joseguzman1337 Apr 17, 2025
79a3923
Create tfsec.yml
joseguzman1337 Apr 17, 2025
774cf60
Create sonarqube.yml
joseguzman1337 Apr 17, 2025
b61b9d0
Create sonarcloud.yml
joseguzman1337 Apr 17, 2025
e0fc5d9
Merge branch 'main' into dependabot/go_modules/tests/terratest/github…
joseguzman1337 Apr 17, 2025
16b46a9
Merge pull request #14 from joseguzman1337/dependabot/go_modules/test…
joseguzman1337 Apr 17, 2025
3e489d8
Create ossar.yml
joseguzman1337 Apr 17, 2025
cf15fd2
Create codacy.yml
joseguzman1337 Apr 17, 2025
a1b2b9b
Create powershell.yml
joseguzman1337 Apr 17, 2025
981ee04
Create sysdig-scan.yml
joseguzman1337 Apr 17, 2025
9ebe3b9
Create checkmarx-one.yml
joseguzman1337 Apr 17, 2025
6ffdb7e
Create checkmarx.yml
joseguzman1337 Apr 17, 2025
131e544
Create jfrog-sast.yml
joseguzman1337 Apr 17, 2025
03eb5df
Create anchore-syft.yml
joseguzman1337 Apr 17, 2025
ba70e10
Create anchore.yml
joseguzman1337 Apr 17, 2025
8b3fff3
Create eslint.yml
joseguzman1337 Apr 17, 2025
e299cae
Create frogbot-scan-pr.yml
joseguzman1337 Apr 17, 2025
b572095
Create pysa.yml
joseguzman1337 Apr 17, 2025
ab91689
Create pyre.yml
joseguzman1337 Apr 17, 2025
ab628c4
Create puppet-lint.yml
joseguzman1337 Apr 17, 2025
0f2c299
Create trivy.yml
joseguzman1337 Apr 17, 2025
6fa74c8
Create terraform.yml
joseguzman1337 Apr 17, 2025
60c8074
Create azure-webapps-node.yml
joseguzman1337 Apr 17, 2025
47f8efe
Create azure-webapps-python.yml
joseguzman1337 Apr 17, 2025
a706ea5
Create azure-functions-app-container.yml
joseguzman1337 Apr 17, 2025
0c2206c
Create azure-kubernetes-service-helm.yml
joseguzman1337 Apr 17, 2025
7de3d44
Create go.yml
joseguzman1337 Apr 17, 2025
00fe187
Create super-linter.yml
joseguzman1337 Apr 17, 2025
0c143c3
Create pylint.yml
joseguzman1337 Apr 17, 2025
325d21e
Create checkov.yml
joseguzman1337 Apr 17, 2025
ef55ca0
feat/add-source
joseguzman1337 Apr 17, 2025
70b4e8d
feat/add-source
joseguzman1337 Apr 17, 2025
45a3e5c
feat/add-source
joseguzman1337 Apr 17, 2025
6de35c6
feat/add-source
joseguzman1337 Apr 17, 2025
530d7e3
feat/add-source
joseguzman1337 Apr 17, 2025
84666b9
feat/add-source
joseguzman1337 Apr 17, 2025
b7a3f1f
feat/add-source
joseguzman1337 Apr 17, 2025
2d74a0b
feat/add-source
joseguzman1337 Apr 17, 2025
7fe3a89
feat/add-source
joseguzman1337 Apr 17, 2025
8c1173e
feat/add-source
joseguzman1337 Apr 17, 2025
5784816
feat/add-source
joseguzman1337 Apr 17, 2025
b070783
chore(deps): bump aquasecurity/trivy-action from 0.5.0 to 0.30.0
dependabot[bot] Apr 17, 2025
adbd24e
chore(deps): bump checkmarx/ast-github-action from 2.0.11 to 2.3.18
dependabot[bot] Apr 17, 2025
1361adb
chore(deps): bump bridgecrewio/checkov-action
dependabot[bot] Apr 17, 2025
072cd96
chore(deps): bump azure/webapps-deploy from 2 to 3
dependabot[bot] Apr 17, 2025
45d5285
chore(deps): bump SonarSource/sonarcloud-github-action
dependabot[bot] Apr 17, 2025
26da72f
Merge pull request #16 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 18, 2025
4c10dd4
Merge branch 'main' into dependabot/github_actions/checkmarx/ast-gith…
joseguzman1337 Apr 18, 2025
b1152a8
Merge pull request #17 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 18, 2025
5841852
Merge branch 'main' into dependabot/github_actions/bridgecrewio/check…
joseguzman1337 Apr 18, 2025
c47b32d
Merge pull request #18 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 18, 2025
7590b63
Merge branch 'main' into dependabot/github_actions/azure/webapps-depl…
joseguzman1337 Apr 18, 2025
8729fa7
Merge pull request #19 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 18, 2025
f03a16c
Merge branch 'main' into dependabot/github_actions/SonarSource/sonarc…
joseguzman1337 Apr 18, 2025
952fe02
Merge pull request #20 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 18, 2025
5b41c9e
Add files via upload
joseguzman1337 Apr 18, 2025
60b8d37
chore(deps): bump hashicorp/setup-terraform from 1 to 3
dependabot[bot] Apr 18, 2025
321b4a2
chore(deps): bump anchore/sbom-action from 0.11.0 to 0.18.0
dependabot[bot] Apr 18, 2025
6d52b85
chore(deps): bump codacy/codacy-analysis-cli-action from 1.1.0 to 4.4.5
dependabot[bot] Apr 18, 2025
65fd733
chore(deps): bump actions/setup-python from 3 to 5
dependabot[bot] Apr 18, 2025
e28aefb
chore(deps): bump azure/aks-set-context from 3 to 4
dependabot[bot] Apr 18, 2025
567fc7c
feat/add-source
joseguzman1337 Apr 19, 2025
fbc1d94
Merge branch 'main' into dependabot/github_actions/hashicorp/setup-te…
joseguzman1337 Apr 19, 2025
6bafb30
Merge pull request #21 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 19, 2025
0e86519
Merge branch 'main' into dependabot/github_actions/anchore/sbom-actio…
joseguzman1337 Apr 19, 2025
0b29493
Merge pull request #22 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 19, 2025
47ce368
Merge branch 'main' into dependabot/github_actions/codacy/codacy-anal…
joseguzman1337 Apr 19, 2025
b7a4074
Merge pull request #23 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 19, 2025
205c053
Merge branch 'main' into dependabot/github_actions/actions/setup-pyth…
joseguzman1337 Apr 19, 2025
f75dd37
Merge pull request #24 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 19, 2025
8b227e3
Merge branch 'main' into dependabot/github_actions/azure/aks-set-cont…
joseguzman1337 Apr 19, 2025
f5b61a0
Merge pull request #25 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 19, 2025
7b801f4
feat/add-source
joseguzman1337 Apr 19, 2025
0c94267
feat/add-source
joseguzman1337 Apr 19, 2025
ccfbf2d
feat/add-source
joseguzman1337 Apr 20, 2025
510000d
feat/add-source
joseguzman1337 Apr 20, 2025
ca8530a
feat/add-source
joseguzman1337 Apr 20, 2025
6fc90db
chore(deps): bump azure/docker-login from 1 to 2
dependabot[bot] Apr 20, 2025
56ec75c
chore(deps): bump facebook/pyre-action from 0.0.1 to 0.0.2
dependabot[bot] Apr 20, 2025
060a0a7
chore(deps): bump Azure/k8s-deploy from 4 to 5
dependabot[bot] Apr 20, 2025
2e18789
chore(deps): bump github/super-linter from 4 to 7
dependabot[bot] Apr 20, 2025
847b0ba
chore(deps): update snyk/actions requirement to cdb760004ba9ea4d525f2…
dependabot[bot] Apr 20, 2025
037202a
Merge pull request #3 from procter-gamble/dependabot/github_actions/a…
joseguzman1337 Apr 20, 2025
02f2368
Merge branch 'main' into dependabot/github_actions/facebook/pyre-acti…
joseguzman1337 Apr 20, 2025
744d462
Merge pull request #4 from procter-gamble/dependabot/github_actions/f…
joseguzman1337 Apr 20, 2025
10c86c4
Merge branch 'main' into dependabot/github_actions/Azure/k8s-deploy-5
joseguzman1337 Apr 20, 2025
b3c1755
Merge pull request #5 from procter-gamble/dependabot/github_actions/A…
joseguzman1337 Apr 20, 2025
8449cfb
Merge branch 'main' into dependabot/github_actions/github/super-linter-7
joseguzman1337 Apr 20, 2025
f20afac
Merge pull request #6 from procter-gamble/dependabot/github_actions/g…
joseguzman1337 Apr 20, 2025
d8b704b
Merge branch 'main' into dependabot/github_actions/snyk/actions-cdb76…
joseguzman1337 Apr 20, 2025
205ebff
Merge pull request #7 from procter-gamble/dependabot/github_actions/s…
joseguzman1337 Apr 20, 2025
6fe0444
Create sonar-project.properties
joseguzman1337 Apr 21, 2025
0675243
Create build.yml
joseguzman1337 Apr 21, 2025
0b4e3b2
Update README.md
joseguzman1337 Apr 21, 2025
42ddb8d
Update README.md
joseguzman1337 Apr 21, 2025
94c55e7
chore(deps): bump google/osv-scanner-action from 1.7.1 to 2.0.1
dependabot[bot] Apr 21, 2025
e655aeb
chore(deps): bump ruby/setup-ruby from 1.146.0 to 1.233.0
dependabot[bot] Apr 21, 2025
e4ee1c6
chore(deps): bump step-security/harden-runner from 2.11.1 to 2.12.0
dependabot[bot] Apr 21, 2025
2407fb9
chore(deps): bump bridgecrewio/checkov-action
dependabot[bot] Apr 21, 2025
efec38c
chore(deps): bump jfrog/frogbot from 2.21.2 to 2.26.0
dependabot[bot] Apr 21, 2025
9d12b2b
chore(deps): bump ruby/setup-ruby from 1.146.0 to 1.233.0
dependabot[bot] Apr 21, 2025
2affb16
chore(deps): bump apisec-inc/ethicalcheck-action
dependabot[bot] Apr 21, 2025
4295cea
chore(deps): bump sysdiglabs/scan-action from 3.2.0 to 3.6.0
dependabot[bot] Apr 21, 2025
c7efab3
chore(deps): bump checkmarx/ast-github-action from 2.3.18 to 2.3.19
dependabot[bot] Apr 21, 2025
fe71746
Merge pull request #8 from procter-gamble/dependabot/github_actions/j…
joseguzman1337 Apr 22, 2025
2530ba2
Merge branch 'main' into dependabot/github_actions/ruby/setup-ruby-1.…
joseguzman1337 Apr 22, 2025
e189d19
Merge pull request #9 from procter-gamble/dependabot/github_actions/r…
joseguzman1337 Apr 22, 2025
99ddf61
Merge branch 'main' into dependabot/github_actions/apisec-inc/ethical…
joseguzman1337 Apr 22, 2025
cf718a2
Merge pull request #10 from procter-gamble/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
3e33c0e
Merge branch 'main' into dependabot/github_actions/sysdiglabs/scan-ac…
joseguzman1337 Apr 22, 2025
4047ab6
Merge pull request #11 from procter-gamble/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
dd7d3b1
Merge branch 'main' into dependabot/github_actions/checkmarx/ast-gith…
joseguzman1337 Apr 22, 2025
7dde5de
Merge pull request #12 from procter-gamble/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
891b4e1
Merge branch 'main' into dependabot/github_actions/google/osv-scanner…
joseguzman1337 Apr 22, 2025
c5af5ea
Merge pull request #26 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
7150955
Merge branch 'main' into dependabot/github_actions/ruby/setup-ruby-1.…
joseguzman1337 Apr 22, 2025
124e652
Merge pull request #27 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
79de795
Merge branch 'main' into dependabot/github_actions/step-security/hard…
joseguzman1337 Apr 22, 2025
d2fdbe7
Merge pull request #28 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
c758ca7
Merge branch 'main' into dependabot/github_actions/bridgecrewio/check…
joseguzman1337 Apr 22, 2025
a4113a1
Merge pull request #29 from joseguzman1337/dependabot/github_actions/…
joseguzman1337 Apr 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These are supported funding model platforms.

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ updates:
directory: "/"
schedule:
interval: daily

- package-ecosystem: gomod
directory: /tests/terratest
schedule:
interval: daily
38 changes: 38 additions & 0 deletions .github/workflows/anchore-syft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow checks out code, builds an image, performs a container image
# scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency
# submission API.

# For more information on the Anchore sbom-action usage
# and parameters, see https://github.com/anchore/sbom-action. For more
# information about the Anchore SBOM tool, Syft, see
# https://github.com/anchore/syft
name: Anchore Syft SBOM scan

on:
push:
branches: [ "main" ]

permissions:
contents: write

jobs:
Anchore-Build-Scan:
permissions:
contents: write # required to upload to the Dependency submission API
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Scan the image and upload dependency results
uses: anchore/sbom-action@f325610c9f50a54015d37c8d16cb3b0e2c8f4de0
with:
image: "localbuild/testimage:latest"
artifact-name: image.spdx.json
dependency-snapshot: true
48 changes: 48 additions & 0 deletions .github/workflows/anchore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow checks out code, builds an image, performs a container image
# vulnerability scan with Anchore's Grype tool, and integrates the results with GitHub Advanced Security
# code scanning feature. For more information on the Anchore scan action usage
# and parameters, see https://github.com/anchore/scan-action. For more
# information on Anchore's container image scanning tool Grype, see
# https://github.com/anchore/grype
name: Anchore Grype vulnerability scan

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '19 8 * * 6'

permissions:
contents: read

jobs:
Anchore-Build-Scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Run the Anchore Grype scan action
uses: anchore/scan-action@d5aa5b6cb9414b0c7771438046ff5bcfa2854ed7
id: scan
with:
image: "localbuild/testimage:latest"
fail-build: true
severity-cutoff: critical
- name: Upload vulnerability report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
79 changes: 79 additions & 0 deletions .github/workflows/azure-functions-app-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# This workflow will build a container and deploy it to an Azure Functions App on Linux when a commit is pushed to your default branch.
#
# This workflow assumes you have already created the target Azure Functions app.
# For instructions see https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=in-process%2Cbash%2Cazure-cli&pivots=programming-language-csharp
#
# To configure this workflow:
# 1. Set up the following secrets in your repository:
# - AZURE_RBAC_CREDENTIALS
# - REGISTRY_USERNAME
# - REGISTRY_PASSWORD
# 2. Change env variables for your configuration.
#
# For more information on:
# - GitHub Actions for Azure: https://github.com/Azure/Actions
# - Azure Functions Container Action: https://github.com/Azure/functions-container-action
# - Azure Service Principal for RBAC: https://github.com/Azure/functions-action#using-azure-service-principal-for-rbac-as-deployment-credential
#
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples/tree/master/FunctionApp

name: Deploy container to Azure Functions App

on:
push:
branches: ["main"]

permissions:
contents: read

env:
AZURE_FUNCTIONAPP_NAME: 'your-app-name' # set this to your function app name on Azure
LOGIN_SERVER: 'login-server' # set this to login server for your private container registry (e.g. 'contoso.azurecr.io', 'index.docker.io' )
REGISTRY: 'your-registry' # set this to proper value for REGISTRY
NAMESPACE: 'your-namespace' # set this to proper value for NAMESPACE
IMAGE: 'your-image' # set this to proper value for IMAGE
TAG: 'your-tag' # set this to proper value for TAG

jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4

- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}

- name: 'Docker Login'
uses: azure/docker-login@v2
with:
login-server: ${{ env.LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: 'Compose Customized Docker Image'
shell: bash
run: |
# If your function app project is not located in your repository's root
# Please change the path to your directory for docker build
docker build . -t ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE }}:${{ env.TAG }}
docker push ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE }}:${{ env.TAG }}

- name: 'Run Azure Functions Container Action'
uses: Azure/functions-container-action@v1
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
image: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE }}:${{ env.TAG }}

# If you want to display or use the functionapp url, then uncomment the task below
#- name: 'Published functionapp url'
# run: |
# echo "${{ steps.fa.outputs.app-url }}"

- name: Azure logout
run: |
az logout
126 changes: 126 additions & 0 deletions .github/workflows/azure-kubernetes-service-helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# This workflow will build and push an application to a Azure Kubernetes Service (AKS) cluster when you push your code
#
# This workflow assumes you have already created the target AKS cluster and have created an Azure Container Registry (ACR)
# The ACR should be attached to the AKS cluster
# For instructions see:
# - https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal
# - https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal
# - https://learn.microsoft.com/en-us/azure/aks/cluster-container-registry-integration?tabs=azure-cli#configure-acr-integration-for-existing-aks-clusters
# - https://github.com/Azure/aks-create-action
#
# To configure this workflow:
#
# 1. Set the following secrets in your repository (instructions for getting these
# https://docs.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-cli%2Clinux)):
# - AZURE_CLIENT_ID
# - AZURE_TENANT_ID
# - AZURE_SUBSCRIPTION_ID
#
# 2. Set the following environment variables (or replace the values below):
# - AZURE_CONTAINER_REGISTRY (name of your container registry / ACR)
# - CONTAINER_NAME (name of the container image you would like to push up to your ACR)
# - RESOURCE_GROUP (where your cluster is deployed)
# - CLUSTER_NAME (name of your AKS cluster)
# - IMAGE_PULL_SECRET_NAME (name of the ImagePullSecret that will be created to pull your ACR image)
#
# 3. Choose the appropriate render engine for the bake step https://github.com/Azure/k8s-bake. The config below assumes Helm.
# Set your helmChart, overrideFiles, overrides, and helm-version to suit your configuration.
# - CHART_PATH (path to your helm chart)
# - CHART_OVERRIDE_PATH (path to your helm chart with override values)
#
# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions
# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
# For more options with the actions used below please refer to https://github.com/Azure/login

name: Build and deploy an app to AKS with Helm

on:
push:
branches: ["main"]
workflow_dispatch:

env:
AZURE_CONTAINER_REGISTRY: "your-azure-container-registry"
CONTAINER_NAME: "your-container-name"
RESOURCE_GROUP: "your-resource-group"
CLUSTER_NAME: "your-cluster-name"
CHART_PATH: "your-chart-path"
CHART_OVERRIDE_PATH: "your-chart-override-path"

jobs:
buildImage:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
# Checks out the repository this file is in
- uses: actions/checkout@v4

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.6
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Builds and pushes an image up to your Azure Container Registry
- name: Build and push image to ACR
run: |
az acr build --image ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.RESOURCE_GROUP }} .

deploy:
permissions:
actions: read
contents: read
id-token: write
runs-on: ubuntu-latest
needs: [buildImage]
steps:
# Checks out the repository this file is in
- uses: actions/checkout@v4

# Logs in with your Azure credentials
- name: Azure login
uses: azure/login@v1.4.6
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Use kubelogin to configure your kubeconfig for Azure auth
- name: Set up kubelogin for non-interactive login
uses: azure/use-kubelogin@v1
with:
kubelogin-version: 'v0.0.25'

# Retrieves your Azure Kubernetes Service cluster's kubeconfig file
- name: Get K8s context
uses: azure/aks-set-context@v4
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
admin: 'false'
use-kubelogin: 'true'

# Runs Helm to create manifest files
- name: Bake deployment
uses: azure/k8s-bake@v2
with:
renderEngine: "helm"
helmChart: ${{ env.CHART_PATH }}
overrideFiles: ${{ env.CHART_OVERRIDE_PATH }}
overrides: |
replicas:2
helm-version: "latest"
id: bake

# Deploys application based on manifest files from previous step
- name: Deploy application
uses: Azure/k8s-deploy@v5
with:
action: deploy
manifests: ${{ steps.bake.outputs.manifestsBundle }}
images: |
${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }}
78 changes: 78 additions & 0 deletions .github/workflows/azure-webapps-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# This workflow will build and push a node.js application to an Azure Web App when a commit is pushed to your default branch.
#
# This workflow assumes you have already created the target Azure App Service web app.
# For instructions see https://docs.microsoft.com/en-us/azure/app-service/quickstart-nodejs?tabs=linux&pivots=development-environment-cli
#
# To configure this workflow:
#
# 1. Download the Publish Profile for your Azure Web App. You can download this file from the Overview page of your Web App in the Azure Portal.
# For more information: https://docs.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=applevel#generate-deployment-credentials
#
# 2. Create a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE, paste the publish profile contents as the value of the secret.
# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret
#
# 3. Change the value for the AZURE_WEBAPP_NAME. Optionally, change the AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables below.
#
# For more information on GitHub Actions for Azure: https://github.com/Azure/Actions
# For more information on the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples

on:
push:
branches: [ "main" ]
workflow_dispatch:

env:
AZURE_WEBAPP_NAME: your-app-name # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '20.x' # set this to the node version to use

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
path: .

deploy:
permissions:
contents: none
runs-on: ubuntu-latest
needs: build
environment:
name: 'Development'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: 'Deploy to Azure WebApp'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
Loading