@@ -170,7 +170,8 @@ function processEvent(event, callback) {
170
170
if ( githubEventType === "installation_repositories" ) {
171
171
// The installation_repositories event contains information about both additions and removals.
172
172
console . log ( "Valid installation event" ) ;
173
- logPayloadToS3 ( deliveryId ) ; //upload event to S3
173
+
174
+ logPayloadToS3 ( body , deliveryId ) ; //upload event to S3
174
175
175
176
path += "workflows/github/install" ;
176
177
postEndpoint ( path , body , deliveryId , ( response ) => {
@@ -206,7 +207,7 @@ function processEvent(event, callback) {
206
207
// A push has been made for some repository (ignore pushes that are deletes)
207
208
if ( ! body . deleted ) {
208
209
console . log ( "Valid push event" ) ;
209
- logPayloadToS3 ( deliveryId ) ; //upload event to S3
210
+ logPayloadToS3 ( body , deliveryId ) ; //upload event to S3
210
211
211
212
const repository = body . repository . full_name ;
212
213
const gitReference = body . ref ;
@@ -262,7 +263,7 @@ function processEvent(event, callback) {
262
263
}
263
264
}
264
265
265
- function logPayloadToS3 ( deliveryId ) {
266
+ function logPayloadToS3 ( body , deliveryId ) {
266
267
// If bucket name is not null (had to put this for the integration test)
267
268
if ( process . env . BUCKET_NAME ) {
268
269
const uploadDate = new Date ( ) ;
0 commit comments