Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Fix profiles with permissions #984

Merged
merged 1 commit into from
Dec 18, 2022

Conversation

tylerslaton
Copy link
Contributor

Fixing an issue where an Acorn that defines permissions conditionally based on profiles would always request the conditional permissions.

Before, acorn run registry/org/repo:conditional-permissions would ask for permissions the same way that acorn run --profile=with-permissions registry/org/repo:conditional-permissions would.

Now, acorn run registry/org/repo:conditional-permissions does not ask for permissions and acorn run --profile=with-permissions registry/org/repo:conditional-permissions does.

Also, I added an input prompt for the Acorn file or image to run for vscode's acorn run launch configuration.

@tylerslaton tylerslaton changed the title Fix profile permissions Fix profiles with permissions Dec 15, 2022
@tylerslaton tylerslaton requested review from ibuildthecloud and cjellick and removed request for ibuildthecloud December 15, 2022 16:13
@tylerslaton tylerslaton marked this pull request as ready for review December 15, 2022 16:14
@tylerslaton tylerslaton force-pushed the fix-profile-permissions branch 2 times, most recently from 1eed679 to 0cc362d Compare December 17, 2022 19:15
Prior to this commit, validation of permissions was not being calculated
using the params set by the users. For example, profiles were not being
taken into account when setting conditional permissions. On top of fixing
this, this also adds an update to launch.json to allow specifying the
Acornfile or image to run.

Signed-off-by: tylerslaton <mtslaton1@gmail.com>
@ibuildthecloud ibuildthecloud merged commit 0e17fdf into acorn-io:main Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants