Skip to content

Commit f5ba036

Browse files
committed
add permission to configure AWS credentials
1 parent 74c6fb4 commit f5ba036

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
name: "Publish Main Build Status"
123123
needs: [ build, application-signals-e2e-test ]
124124
runs-on: ubuntu-latest
125-
if: always()
125+
if: always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
126126
steps:
127127
- name: Configure AWS Credentials for emitting metrics
128128
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0

.github/workflows/nightly-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
AWS_DEFAULT_REGION: us-east-1
1313
BRANCH_NAME: nightly-dependency-updates
1414

15+
permissions:
16+
id-token: write
17+
1518
jobs:
1619
update-and-create-pr:
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)