Skip to content

Commit 21d8feb

Browse files
committed
fix(storage): apply code review suggestions for IAM permissions
1 parent ca3f772 commit 21d8feb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

storage/system-test/notifications.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ const topic = pubsub.topic(topicName);
3535
before(async () => {
3636
await bucket.create();
3737
await topic.create();
38+
const [gcsServiceAccount] = await storage.getServiceAccount();
3839
await topic.iam.setPolicy({
3940
bindings: [
4041
{
4142
role: 'roles/pubsub.editor',
42-
members: ['allUsers'],
43+
members: [`serviceAccount:${gcsServiceAccount.emailAddress}`],
4344
},
4445
],
4546
});

0 commit comments

Comments
 (0)