Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2990c447
Commit
2990c447
authored
Nov 06, 2020
by
Brad Davidson
Committed by
Brad Davidson
Nov 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GH auth for Trivy
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
32c59185
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
.drone.yml
.drone.yml
+3
-1
Dockerfile.dapper
Dockerfile.dapper
+1
-2
No files found.
.drone.yml
View file @
2990c447
...
...
@@ -9,8 +9,10 @@ platform:
steps
:
-
name
:
build
image
:
rancher/dapper:v0.4.2
secrets
:
[
gcloud_auth
]
secrets
:
[
gcloud_auth
,
unprivileged_github_token
]
environment
:
GITHUB_TOKEN
:
from_secret
:
unprivileged_github_token
GCLOUD_AUTH
:
from_secret
:
gcloud_auth
commands
:
...
...
Dockerfile.dapper
View file @
2990c447
...
...
@@ -22,7 +22,6 @@ RUN if [ "$(go env GOARCH)" = "arm64" ]; then
tar -zxvf trivy_0.11.0_Linux-64bit.tar.gz && \
mv trivy /usr/local/bin; \
fi
RUN trivy --download-db-only
RUN mkdir -p /go/src/golang.org/x && \
cd /go/src/golang.org/x && git clone https://github.com/golang/tools && cd tools && \
git checkout -b current aa82965741a9fecd12b026fbb3d3c6ed3231b8f8 && \
...
...
@@ -41,7 +40,7 @@ ENV SELINUX $SELINUX
ENV GO111MODULE off
ENV DAPPER_RUN_ARGS --privileged -v k3s-cache:/go/src/github.com/rancher/k3s/.cache -v trivy-cache:/root/.cache/trivy
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME SKIP_VALIDATE GCLOUD_AUTH
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME SKIP_VALIDATE GCLOUD_AUTH
GITHUB_TOKEN
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_OUTPUT ./bin ./dist ./build/out
ENV DAPPER_DOCKER_SOCKET true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment