add static fileserver #14061
Triggered via pull request
September 18, 2023 15:59
Status
Success
Total duration
22m 10s
Artifacts
–
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: pull_request
Matrix: Build and Test
Matrix: Jmh Publish
Matrix: Unsafe Scoverage
Matrix: Release Drafter
Matrix: Publish Artifacts
Annotations
2 errors
Release Drafter (ubuntu-latest, 2.13.10, temurin@8)
Resource not accessible by integration
{
name: 'HttpError',
id: '6225009174',
status: 403,
response: {
url: 'https://api.github.com/repos/zio/zio-http/releases',
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Mon, 18 Sep 2023 15:59:39 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'D8C5:5E15:85B9F:10ECC4:650873EB',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '975',
'x-ratelimit-reset': '1695053031',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '25',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/zio/zio-http/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/2450/merge","name":"v3.0.0 🌈","tag_name":"v3.0.0","body":"## Changes\\n\\n- added mediaType parameters to Body methods @Adriani-Furtado (#2323)\\n- simplify query param access @TomTriple (#2419)\\n- refactor: simplify empty check @junghoon-vans (#2329)\\n- remove code @TomTriple (#2414)\\n- Fix SSLSpec @adamgfraser (#2415)\\n- issue\\\\_2212 update client proxy settings @rajcspsg (#2336)\\n- ZClient fast shutdown @johnhungerford (#2410)\\n- Refactor `Endpoint` test coverage @wooster0 (#2389)\\n- cleanup and remove ServerTime @TomTriple (#2413)\\n- change signature to allow type inference @TomTriple (#2406)\\n- Add traces to all effectful methods for zio.http package @zarinfam (#2328)\\n- small fixes in docs @TomTriple (#2408)\\n- rename package from zio.http.html to zio.http.template to avoid ambiguity @TomTriple (#2405)\\n- Fix Scoping Of Test Resources @adamgfraser (#2407)\\n- Negative values support for TextCodec and SegmentCodec @danieletorelli (#2393)\\n- Revert netty and update ZIO to stable @vigoo (#2397)\\n- Multipart/from file impl. in CLI and test suite @pablf (#2355)\\n- lax environment requirement when transforming a Handler @myazinn (#2390)\\n- Increase Endpoint test coverage @danieletorelli (#2385)\\n- `Endpoint` api en-/decodes based on accept header @987Nabil (#2366)\\n- transform functions for PathCodec @vigoo (#2376)\\n- By default set client idle timeout @erikvanoosten (#2371)\\n- Automatically validate request body using `Schema.validate` @williamareynolds (#2360)\\n- Convert metrics from HandlerAspect to Middleware #2320 @lookingformira (#2334)\\n- Make header value computation in request logging lazy @987Nabil (#2367)\\n- Optimize (Halt | codec) @vigoo (#2374)\\n- Ignore Flaky Test @adamgfraser (#2337)\\n- Update client3:core to 3.9.0 @scala-steward (#2382)\\n- Tests Cleanup @adamgfraser (#2379)\\n- New Response model @hbibel (#2348)\\n- Generalize the concept of met
|
Release Drafter (ubuntu-latest, 2.13.10, temurin@8)
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:8462:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '6225009174',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: 'I have a simple static fileserver as middleware, which provides an API like that: \r\n' +
'\r\n' +
'```scala\r\n' +
'package example\r\n' +
'\r\n' +
'import zio._\r\n' +
'import zio.http._\r\n' +
'\r\n' +
'object AppMain extends ZIOAppDefault {\r\n' +
'\r\n' +
' val staticServeMiddleware = StaticServe.middleware(\r\n' +
' Path.root / "images", \r\n' +
' StaticServe\r\n' +
' .fromDirectory("/opt/repos/os/aaa/images")\r\n' +
' .orElse(StaticServe.fromDirectory("/opt/repos/os/aaa/assets"))\r\n' +
' .orElse(StaticServe.fromResource)\r\n' +
' )\r\n' +
'\r\n' +
' val appDashboard = new AppDashboard()\r\n' +
' val appLogin = new AppLogin(appDashboard)\r\n' +
' val appRoutes = (\r\n' +
' appLogin.routes ++ appDashboard.routes\r\n' +
' )\r\n' +
'\r\n' +
' override val run =\r\n' +
' Server.serve(appRoutes.toHttpApp @@ staticServeMiddleware).provide(Server.default)\r\n' +
'\r\n' +
'} \r\n' +
'```\r\n' +
'I also added checks to anticipate traversal attacks (same as in akka http): \r\n' +
'\r\n' +
'- prevent fishy requests with ".." in path segments\r\n' +
'- prevent serving files outside of the configured document root directory\r\n'
}
},
number: 2450,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/49655448?v=4',
description: 'ZIO — Real World Functional Programming',
events_url: 'https://api.github.com/orgs/zio/events',
hooks_url: 'https://api.github.com/orgs/zio/hooks',
id: 49655448,
issues_url: 'https://api.github.com/orgs/zio/issues',
login: 'zio',
members_url: 'https://api.github.com/orgs/zio/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjQ5NjU1NDQ4',
public_members_url: 'https://api.github.com/orgs/zio/public_members{/member}',
repos_url: 'https://api.github.com/orgs/zio/repos',
url: 'https://api.github.com/orgs/zio'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/zio/zio-http/issues/2450/comments'
},
commits: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2450/commits'
},
html: { href: 'https://github.com/zio/zio-http/pull/2450' },
issue: {
href: 'https://api.github.com/repos/zio/zio-http/issues/2450'
},
review_comment: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2450/comments'
},
self: {
href: 'https://api.github.com/repos/zio/zio-http/pulls/2450'
},
statuses: {
href: 'https://api.github.com/repos/zio/zio-http/statuses/a5846e6711defe1d7ce132b1e27ce42759906fad'
}
},
active_lock_reason: null,
additions: 88,
assignee: null,
assignees: [],
author_association: 'CONTRIBUTOR',
auto_merge: null,
base: {
label: 'zio:main',
ref: 'main',
repo: {
allow_auto_merge: t
|