adobe / adobe/aio-cli-plugin-app

support `require-adobe-auth` on sequences

Open
#827 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
28
Forks
41
Avg merge
1d 2h
Merged PRs (30d)
3

Description

**Describe the bug**
Currently setting the annotation on a sequence doesn't add the /adobeio/shared-validators-v1/app-registry action to the sequence and hence doesn't protect the sequence. Individual web actions "components" of the sequence should also be protected with the `require-whisk-annotation`

**Workaround**

A workaround is to configure the protection manually:
EDIT: See comments below, you may want to remove the `require-whisk-auth` annotation and remove the `web` option instead.

```yaml
runtimeManifest:
packages:
dx-excshell-1:
license: Apache-2.0
actions:
action1:
function: actions/action1/index.js
web: 'yes'
runtime: nodejs:18
annotations:
require-whisk-auth: true
action2:
function: actions/action2/index.js
web: 'yes'
runtime: nodejs:18
annotations:
require-whisk-auth: true
sequences:
mysequence:
web: 'yes'
actions: /adobeio/shared-validators-v1/app-registry, action1, action2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.