Skip to content

Commit c401b8a

Browse files
authored
Merge pull request #1330 from aws-actions/dependabot-and-build-test
fix: make sure action builds, also fix dependabot autoapprove
2 parents 483d6b5 + 27e906a commit c401b8a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/dependabot-autoapprove.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Dependabot auto-approve
2-
on: pull_request
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
36
permissions:
47
pull-requests: write
58
id-token: write
9+
contents: read
610
jobs:
711
dependabot:
812
runs-on: ubuntu-latest
@@ -17,7 +21,7 @@ jobs:
1721
uses: aws-actions/configure-aws-credentials@v4
1822
with:
1923
aws-region: us-west-2
20-
role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }}
24+
role-to-assume: arn:aws:iam::206735643321:role/ConfigureAwsCredentialsPackageRole
2125
role-duration-seconds: 900
2226
- name: Get bot user token
2327
uses: aws-actions/aws-secretsmanager-get-secrets@v2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "tsc",
77
"lint": "biome check --error-on-warnings ./src",
88
"package": "npm run build && ncc build --license THIRD-PARTY -o dist && ncc build src/cleanup/index.ts -o dist/cleanup && cpy dist/THIRD-PARTY . && del-cli dist/THIRD-PARTY",
9-
"test": "npm run lint && vitest run"
9+
"test": "npm run lint && vitest run && npm run build"
1010
},
1111
"author": {
1212
"name": "Amazon.com, Inc. or its affiliates",

0 commit comments

Comments
 (0)