-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from yoheimuta/fix-panic-due-to-mix-lineendin…
…g/280 Fix indentrule causing runtime error when the file has a mix of LF an CRLF
- v0.53.0
- v0.52.0
- v0.51.0
- v0.50.5
- v0.50.4
- v0.50.3
- v0.50.2
- v0.50.1
- v0.50.0
- v0.49.8
- v0.49.7
- v0.49.6
- v0.49.5
- v0.49.4
- v0.49.3
- v0.49.2
- v0.49.1
- v0.49.0
- v0.48.0
- v0.47.6
- v0.47.5
- v0.47.4
- v0.47.3
- v0.47.2
- v0.47.1
- v0.47.0
- v0.46.3
- v0.46.2
- v0.46.1
- v0.46.0
- v0.45.2
- v0.45.1
- v0.45.0
- v0.44.0
- v0.43.2
- v0.43.1
- v0.43.0
- v0.42.2
- v0.42.1
- v0.42.0
- v0.41.0
Showing
4 changed files
with
95 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,36 +26,3 @@ jobs: | |
|
||
- name: Build | ||
run: make build/cmd/protolint | ||
|
||
- name: Build Docker image | ||
run: docker build -t docker.io/yoheimuta/protolint:${{ github.sha }} . | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: docker.io/yoheimuta/protolint:${{ github.sha }} | ||
exit-code: '1' | ||
format: sarif | ||
ignore-unfixed: true | ||
output: trivy-results.sarif | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
if: always() | ||
with: | ||
sarif_file: trivy-results.sarif | ||
wait-for-processing: true | ||
|
||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
failure-threshold: style | ||
format: sarif | ||
output-file: hadolint-results.sarif | ||
|
||
- name: Upload Hadolint scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
if: always() | ||
with: | ||
sarif_file: hadolint-results.sarif | ||
wait-for-processing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// https://github.com/pseudomuto/protoc-gen-doc/blob/master/examples/proto/Booking.proto | ||
|
||
/** | ||
* Booking related messages. | ||
* | ||
* This file is really just an example. The data model is completely | ||
* fictional. | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package com.example; | ||
|
||
import "google/api/annotations.proto"; | ||
import "github.com/mwitkow/go-proto-validators/validator.proto"; | ||
|
||
/** | ||
* Represents the booking status ID. | ||
*/ | ||
message BookingStatusID { | ||
int32 id = 1; /// Unique booking status ID. | ||
} | ||
|
||
/** | ||
* Represents the status of a vehicle booking. | ||
*/ | ||
message BookingStatus { | ||
int32 id = 1; /// Unique booking status ID. | ||
string description = 2 [(validator.field) = {string_not_empty: true, length_lt: 255}]; /// Booking status description. E.g. "Active". | ||
} | ||
|
||
/** | ||
* Represents the booking of a vehicle. | ||
* | ||
* Vehicles are some cool shit. But drive carefully! | ||
*/ | ||
message Booking { | ||
int32 vehicle_id = 1; /// ID of booked vehicle. | ||
int32 customer_id = 2; /// Customer that booked the vehicle. | ||
BookingStatus status = 3; /// Status of the booking. | ||
|
||
/** Has booking confirmation been sent? */ | ||
bool confirmation_sent = 4; | ||
|
||
/** Has payment been received? */ | ||
bool payment_received = 5; | ||
|
||
string color_preference = 6 [deprecated=true]; // Color preference of the customer. | ||
} | ||
|
||
// An empty message for testing | ||
message EmptyBookingMessage { | ||
} | ||
|
||
/** | ||
* Service for handling vehicle bookings. | ||
*/ | ||
service BookingService { | ||
/// Used to book a vehicle. Pass in a Booking and a BookingStatus will be returned. | ||
rpc BookVehicle (Booking) returns (BookingStatus) { | ||
option (google.api.http) = { | ||
post: "/api/bookings/vehicle/{vehicle_id}" | ||
body: "*" | ||
}; | ||
} | ||
|
||
/// Used to subscribe to updates of the BookingStatus. | ||
rpc BookingUpdates (BookingStatusID) returns (stream BookingStatus); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters