Skip to content

Commit 9f3a45d

Browse files
authored
Merge pull request #1 from ForAllSecure/sarif-report
Fix mapi SARIF report upload for codeQL
2 parents 26b20e1 + a50c055 commit 9f3a45d

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/mapi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
name: mapi-report
5050
path: mapi.html
5151

52+
# Archive SARIF report
53+
- name: Archive Mayhem for API SARIF report
54+
uses: actions/upload-artifact@v2
55+
with:
56+
name: sarif-report
57+
path: mapi.sarif
58+
5259
# Upload SARIF file (only available on public repos or github enterprise)
5360
- name: Upload SARIF file
5461
uses: github/codeql-action/upload-sarif@v1

server/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ func (s *server) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*pb.
129129
return nil, status.Error(codes.NotFound, fmt.Sprintf("Could not find user with ID - %d", in.GetId()))
130130
}
131131

132-
return &pb.DeleteUserResult{Count: count}, nil
132+
return nil, status.Error(codes.Internal, "Failed to delete user anyway")
133+
134+
// return &pb.DeleteUserResult{Count: count}, nil
133135
}
134136

135137
//

0 commit comments

Comments
 (0)