We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Apply Bicep configuration step fails in build-and-deploy GitOps GitHub Action.
To Reproduce Steps to reproduce the behavior:
git checkout -b env-test
git push origin env-test
Expected behavior I expect all the steps in the GitHub Action to succeed because I didn't change the configuration generated by NubesGen in any way.
Screenshots The Apply Bicep configuration step fails:
Desktop (please complete the following information):
OS: Arch Linux x86_64 Host: TUXEDO Pulse 14 Gen1 Standard Kernel: 6.0.12-arch1-1 Uptime: 2 days, 7 hours, 7 mins Packages: 1148 (pacman) Shell: fish 3.5.1 Resolution: 3840x2160 WM: qtile Theme: Adwaita [GTK2], Arc-Dark [GTK3] Icons: Adwaita [GTK2], Cyan-Breeze-Dark-Icons [GTK3] Terminal: tmux CPU: AMD Ryzen 7 4800H with Radeon Graphics (16) @ 2.900GHz GPU: AMD ATI 04:00.0 Renoir Memory: 7893MiB / 31515MiB
Additional context
Here is the DEBUG log off the failed GitHub Action task:
##[debug]Evaluating condition for step: 'Apply Bicep configuration' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: Apply Bicep configuration ##[debug]Register post job cleanup for action: microsoft/nubesgen-actions/[email protected] ##[debug]Loading inputs ##[debug]Evaluating: secrets.AZURE_CREDENTIALS ##[debug]Evaluating Index: ##[debug]..Evaluating secrets: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'AZURE_CREDENTIALS' ##[debug]=> '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Result: '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Loading env Run microsoft/nubesgen-actions/[email protected] ##[debug]Evaluating condition for step: 'run' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: run ##[debug]Register post job cleanup for action: actions/checkout@v3 ##[debug]Loading inputs ##[debug]Evaluating: github.repository ##[debug]Evaluating Index: ##[debug]..Evaluating github: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'repository' ##[debug]=> 'gontcharovd/nubesgen-bicep' ##[debug]Result: 'gontcharovd/nubesgen-bicep' ##[debug]Evaluating: github.token ##[debug]Evaluating Index: ##[debug]..Evaluating github: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'token' ##[debug]=> '***' ##[debug]Result: '***' ##[debug]Loading env Run actions/checkout@v3 ##[debug]GITHUB_WORKSPACE = '/home/runner/work/nubesgen-bicep/nubesgen-bicep' ##[debug]qualified repository = 'gontcharovd/nubesgen-bicep' ##[debug]ref = 'refs/heads/env-test' ##[debug]commit = 'abe729f73e3b15ff89459d25159f9c4eabac2ac1' ##[debug]clean = true ##[debug]fetch depth = 1 ##[debug]lfs = false ##[debug]submodules = false ##[debug]recursive submodules = false ##[debug]GitHub Host URL = ::add-matcher::/home/runner/work/_actions/actions/checkout/v3/dist/problem-matcher.json ##[debug]Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline. Syncing repository: gontcharovd/nubesgen-bicep ::group::Getting Git version info Getting Git version info ::add-mask::*** Temporarily overriding HOME='/home/runner/work/_temp/68b39652-1e79-4e9f-852c-85d44fcbdd57' before making global git config changes Adding repository directory to the temporary git global config as a safe directory /usr/bin/git config --global --add safe.directory /home/runner/work/nubesgen-bicep/nubesgen-bicep Deleting the contents of '/home/runner/work/nubesgen-bicep/nubesgen-bicep' ::group::Initializing the repository Initializing the repository ::group::Disabling automatic garbage collection Disabling automatic garbage collection ::group::Setting up auth Setting up auth ::group::Fetching the repository Fetching the repository ::group::Determining the checkout info Determining the checkout info ::group::Checking out the ref Checking out the ref /usr/bin/git log -1 --format='%H' 'abe729f73e3b15ff89459d25159f9c4eabac2ac1' ##[debug]Unsetting HOME override ::remove-matcher owner=checkout-git:: ##[debug]Removed matchers: 'checkout-git' ##[debug]Node Action run completed with exit code 0 ##[debug]Save intra-action state isPost = true ##[debug]Save intra-action state setSafeDirectory = true ##[debug]Save intra-action state repositoryPath = /home/runner/work/nubesgen-bicep/nubesgen-bicep ##[debug]Finished: run ##[debug]Evaluating: inputs.azure_credentials ##[debug]Evaluating Index: ##[debug]..Evaluating inputs: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'azure_credentials' ##[debug]=> '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Result: '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Evaluating condition for step: 'run' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: run ##[debug]Loading inputs ##[debug]Loading env Run TAG_NAME=$***GITHUB_REF#refs/*/*** ##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/5e1ee816-b687-4978-ba91-bebdb4bfaee0.sh ##[debug]ENVIRONMENT='test' ##[debug]ARM_CLIENT_ID='8cc43117-7159-44a8-892c-a47ea7194fcf' ##[debug]ARM_SUBSCRIPTION_ID='44b670fe-2c6c-4075-9128-eb40b6691e3b' ##[debug]ARM_TENANT_ID='d940f32d-5061-4e88-8b6c-297e55a8d555' ##[debug]Finished: run ##[debug]Evaluating condition for step: 'run' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: run ##[debug]Loading inputs ##[debug]Evaluating: inputs.azure_credentials ##[debug]Evaluating Index: ##[debug]..Evaluating inputs: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'azure_credentials' ##[debug]=> '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Result: '*** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug] *** ##[debug]***' ##[debug]Loading env Run azure/login@v1 ##[debug]az cli version used: /usr/bin/az ##[debug]az cli version used: ##[debug]azure-cli 2.43.0 ##[debug] ##[debug]core 2.43.0 ##[debug]telemetry 1.0.8 ##[debug] ##[debug]Extensions: ##[debug]azure-devops 0.25.0 ##[debug] ##[debug]Dependencies: ##[debug]msal 1.20.0 ##[debug]azure-mgmt-resource 21.1.0b1 ##[debug] ##[debug]Python location '/opt/az/bin/python3' ##[debug]Extensions directory '/opt/az/azcliextensions' ##[debug] ##[debug]Python (Linux) 3.10.8 (main, Dec 2 2022, 06:07:45) [GCC 9.4.0] ##[debug] ##[debug]Legal docs and information: aka.ms/AzureCliLegal ##[debug] ##[debug] ##[debug]Your CLI is up-to-date. ##[debug] ##[debug]using creds JSON... ::add-mask::*** ::add-mask::*** ::add-mask::*** ::add-mask::*** /usr/bin/az cloud set -n azurecloud Done setting cloud: "azurecloud" Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details. Login successful. ##[debug]Node Action run completed with exit code 0 ##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS/AzureLogin@v1_gontcharovd/nubesgen-bicep' ##[debug]AZUREPS_HOST_ENVIRONMENT='GITHUBACTIONS/AzureLogin@v1_gontcharovd/nubesgen-bicep' ##[debug]AZURE_HTTP_USER_AGENT='' ##[debug]AZUREPS_HOST_ENVIRONMENT='' ##[debug]Finished: run ##[debug]Evaluating condition for step: 'run' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: run ##[debug]Loading inputs ##[debug]Evaluating: format('***0***/bicep/main.bicep', github.workspace) ##[debug]Evaluating format: ##[debug]..Evaluating String: ##[debug]..=> '***0***/bicep/main.bicep' ##[debug]..Evaluating Index: ##[debug]....Evaluating github: ##[debug]....=> Object ##[debug]....Evaluating String: ##[debug]....=> 'workspace' ##[debug]..=> '/home/runner/work/nubesgen-bicep/nubesgen-bicep' ##[debug]=> '/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep' ##[debug]Result: '/home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep' ##[debug]Evaluating: format('nubesgen-***0***-***1***', inputs.project_name, env.ENVIRONMENT) ##[debug]Evaluating format: ##[debug]..Evaluating String: ##[debug]..=> 'nubesgen-***0***-***1***' ##[debug]..Evaluating Index: ##[debug]....Evaluating inputs: ##[debug]....=> Object ##[debug]....Evaluating String: ##[debug]....=> 'project_name' ##[debug]..=> 'minimal-shiny-app' ##[debug]..Evaluating Index: ##[debug]....Evaluating env: ##[debug]....=> Object ##[debug]....Evaluating String: ##[debug]....=> 'ENVIRONMENT' ##[debug]..=> 'test' ##[debug]=> 'nubesgen-minimal-shiny-app-test' ##[debug]Result: 'nubesgen-minimal-shiny-app-test' ##[debug]Evaluating: inputs.deployment_region ##[debug]Evaluating Index: ##[debug]..Evaluating inputs: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'deployment_region' ##[debug]=> 'westeurope' ##[debug]Result: 'westeurope' ##[debug]Loading env Run azure/arm-deploy@v1 Validating template... Warning: WARNING: /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(10,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names] /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(11,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names] /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/modules/app-service/app-service.bicep(79,18) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation] Creating deployment... ##[debug]exec tool: /usr/bin/az ##[debug]arguments: ##[debug] deployment ##[debug] sub ##[debug] create ##[debug] --location ##[debug] westeurope ##[debug] --template-file ##[debug] /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep ##[debug] --name ##[debug] nubesgen-minimal-shiny-app-test ##[debug] -o ##[debug] json Error: WARNING: /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(10,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names] /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/main.bicep(11,3) : Warning prefer-unquoted-property-names: Property names that are valid identifiers should be declared without quotation marks and accessed using dot notation. [https://aka.ms/bicep/linter/prefer-unquoted-property-names] /home/runner/work/nubesgen-bicep/nubesgen-bicep/bicep/modules/app-service/app-service.bicep(79,18) : Warning simplify-interpolation: Remove unnecessary string interpolation. [https://aka.ms/bicep/linter/simplify-interpolation] ##[debug]Exit code 0 received from tool '/usr/bin/az' ##[debug]STDIO streams have closed for tool '/usr/bin/az' Error: Deployment process failed as some lines were written to stderr ##[debug]Node Action run completed with exit code 1 ##[debug]Finished: run ##[debug]Finishing: Apply Bicep configuration
The text was updated successfully, but these errors were encountered:
I forgot to add that I stored the JSON output of this command as a GitHub Actions Secret called AZURE_CREDENTIALS:
AZURE_CREDENTIALS
az ad sp create-for-rbac --name "nubesgen-bicep" --role contributor \ --scopes /subscriptions/<here I wrote my subscription ID> \ --sdk-auth
Sorry, something went wrong.
Assigned @cmaneu as he's our Bicep expert
cmaneu
No branches or pull requests
Describe the bug
Apply Bicep configuration step fails in build-and-deploy GitOps GitHub Action.
To Reproduce
Steps to reproduce the behavior:
git checkout -b env-test
and push to GitHubgit push origin env-test
Expected behavior
I expect all the steps in the GitHub Action to succeed because I didn't change the configuration generated by NubesGen in any way.
Screenshots
The Apply Bicep configuration step fails:
Desktop (please complete the following information):
OS: Arch Linux x86_64
Host: TUXEDO Pulse 14 Gen1 Standard
Kernel: 6.0.12-arch1-1
Uptime: 2 days, 7 hours, 7 mins
Packages: 1148 (pacman)
Shell: fish 3.5.1
Resolution: 3840x2160
WM: qtile
Theme: Adwaita [GTK2], Arc-Dark [GTK3]
Icons: Adwaita [GTK2], Cyan-Breeze-Dark-Icons [GTK3]
Terminal: tmux
CPU: AMD Ryzen 7 4800H with Radeon Graphics (16) @ 2.900GHz
GPU: AMD ATI 04:00.0 Renoir
Memory: 7893MiB / 31515MiB
Additional context
Here is the DEBUG log off the failed GitHub Action task:
The text was updated successfully, but these errors were encountered: