@adobe/aio-lib-web 7.1.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ name: Dependabot Coverage Upload
2
+
3
+ on:
4
+ issue_comment:
5
+ types: [created]
6
+
7
+ jobs:
8
+ check:
9
+ if: github.event.issue.pull_request != null && github.event.comment.body == '/upload-coverage'
10
+ runs-on: ubuntu-latest
11
+ outputs:
12
+ allowed: ${{ steps.gate.outputs.allowed }}
13
+ steps:
14
+ - name: Gate check
15
+ id: gate
16
+ run: |
17
+ set -euo pipefail
18
+ PERM=$(gh api "repos/$GITHUB_REPOSITORY/collaborators/$COMMENT_USER_LOGIN/permission" --jq '.permission' 2>/dev/null || echo "none")
19
+ if [ "$PERM" = "admin" ] || [ "$PERM" = "maintain" ]; then
20
+ echo "allowed=true" >> $GITHUB_OUTPUT
21
+ else
22
+ echo "allowed=false" >> $GITHUB_OUTPUT
23
+ fi
24
+ env:
25
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
+ COMMENT_USER_LOGIN: ${{ github.event.comment.user.login }}
27
+
28
+ upload:
29
+ needs: check
30
+ if: needs.check.outputs.allowed == 'true'
31
+ uses: adobe/aio-reusable-workflows/.github/workflows/dependabot-coverage-upload.yml@main
32
+ secrets:
33
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,62 @@
1
+ name: PR Review
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, reopened, synchronize]
6
+ issue_comment:
7
+ types: [created]
8
+
9
+ jobs:
10
+ check:
11
+ # NOTE: comment body matching is exact — /review or /pr-reviewer with no trailing spaces, newlines, or mixed case
12
+ # This does not fail the workflow; non-matching comments simply do not trigger the job
13
+ if: |
14
+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) ||
15
+ (github.event_name == 'issue_comment' && github.event.issue.pull_request != null &&
16
+ (github.event.comment.body == '/review' || github.event.comment.body == '/pr-reviewer'))
17
+ runs-on: ubuntu-latest
18
+ outputs:
19
+ allowed: ${{ steps.gate.outputs.allowed }}
20
+ pr_number: ${{ steps.gate.outputs.pr_number }}
21
+ head_sha: ${{ steps.gate.outputs.head_sha }}
22
+ steps:
23
+ - name: Gate check
24
+ id: gate
25
+ run: |
26
+ set -euo pipefail
27
+ if [ "$EVENT_NAME" = "pull_request" ]; then
28
+ echo "allowed=true" >> $GITHUB_OUTPUT
29
+ echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
30
+ echo "head_sha=$HEAD_SHA" >> $GITHUB_OUTPUT
31
+ else
32
+ # Fall back to "none" if user is not a collaborator (gh api returns 404) so allowed=false is output cleanly
33
+ PERM=$(gh api repos/$GITHUB_REPOSITORY/collaborators/$COMMENT_USER_LOGIN/permission --jq '.permission' 2>/dev/null || echo "none")
34
+ # Intentionally require admin or maintain; write collaborators are excluded to
35
+ # limit who can trigger potentially expensive/sensitive review automation.
36
+ if [ "$PERM" = "admin" ] || [ "$PERM" = "maintain" ]; then
37
+ DATA=$(gh api repos/$GITHUB_REPOSITORY/pulls/$ISSUE_NUMBER)
38
+ echo "allowed=true" >> $GITHUB_OUTPUT
39
+ echo "pr_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
40
+ echo "head_sha=$(echo "$DATA" | jq -r '.head.sha')" >> $GITHUB_OUTPUT
41
+ else
42
+ echo "allowed=false" >> $GITHUB_OUTPUT
43
+ fi
44
+ fi
45
+ env:
46
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+ EVENT_NAME: ${{ github.event_name }}
48
+ PR_NUMBER: ${{ github.event.pull_request.number }}
49
+ HEAD_SHA: ${{ github.event.pull_request.head.sha }}
50
+ COMMENT_USER_LOGIN: ${{ github.event.comment.user.login }}
51
+ ISSUE_NUMBER: ${{ github.event.issue.number }}
52
+ # GITHUB_REPOSITORY is set automatically by GitHub Actions (owner/repo)
53
+
54
+ review:
55
+ needs: check
56
+ if: needs.check.outputs.allowed == 'true'
57
+ uses: adobe/aio-reusable-workflows/.github/workflows/pr-review.yml@main
58
+ with:
59
+ pr_number: ${{ needs.check.outputs.pr_number }}
60
+ head_sha: ${{ needs.check.outputs.head_sha }}
61
+ secrets:
62
+ AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.APP_BUILDER_AWS_BEARER_TOKEN_BEDROCK }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aio-lib-web",
3
- "version": "7.1.1",
3
+ "version": "7.2.0",
4
4
  "description": "Utility tooling library to build and deploy Adobe I/O Project Firefly app static sites to CDN",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -10,7 +10,7 @@
10
10
  "author": "Adobe Inc.",
11
11
  "license": "Apache-2.0",
12
12
  "engines": {
13
- "node": ">=18"
13
+ "node": ">=20"
14
14
  },
15
15
  "repository": "adobe/aio-lib-web",
16
16
  "homepage": "https://github.com/adobe/aio-lib-web",
@@ -32,7 +32,7 @@
32
32
  "@adobe/aio-lib-core-config": "^5",
33
33
  "@adobe/aio-lib-core-logging": "^3",
34
34
  "@adobe/aio-lib-core-tvm": "^4",
35
- "@aws-sdk/client-s3": "^3.624.0",
35
+ "@aws-sdk/client-s3": "^3.1045.0",
36
36
  "@smithy/node-http-handler": "^4.0.2",
37
37
  "core-js": "^3.25.1",
38
38
  "fs-extra": "^11",