Skip to content

Commit

Permalink
Merge pull request #65 from CycloneDX/pin-gitpod-dockerfile-digest
Browse files Browse the repository at this point in the history
pin gitpod dockerfile digest
  • Loading branch information
nscuro authored Nov 3, 2022
2 parents 830b779 + 97c1e5a commit 65c0714
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
reviewers:
- "CycloneDX/go-maintainers"
schedule:
# We only have one Dockerfile for the Gitpod workspace
# right now, and it's not critical to be super up-to-date.
interval: "monthly"
- package-ecosystem: "gomod"
directory: "/"
reviewers:
- "CycloneDX/go-maintainers"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
reviewers:
- "CycloneDX/go-maintainers"
schedule:
interval: "daily"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
run: |
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
wget -O "$HOME/.local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.24.1/cyclonedx-linux-x64
echo "ad736b1443aa6527fc8bffdca1f632414908d21a631f33c60f439f6942a47d3c $HOME/.local/bin/cyclonedx" | sha256sum -c
wget -O "$HOME/.local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.24.2/cyclonedx-linux-x64
echo "ef0d3b31d176e02bc594f83e19cfcea053c6bc5b197351f71696e189390f851d $HOME/.local/bin/cyclonedx" | sha256sum -c
chmod +x "$HOME/.local/bin/cyclonedx"
- name: Checkout Repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
Expand Down
10 changes: 0 additions & 10 deletions .gitpod.Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion .licenserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header:
- "**/testdata/**"
- ".github/**"
- ".gitignore"
- ".gitpod.*"
- ".gitpod.yml"
- ".golangci.yml"
- ".goreleaser.yml"
- ".licenserc.yml"
Expand Down
27 changes: 27 additions & 0 deletions Dockerfile.gitpod
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file is part of CycloneDX Go
#
# Licensed under the Apache License, Version 2.0 (the “License”);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) OWASP Foundation. All Rights Reserved.

FROM gitpod/workspace-go:latest@sha256:2be827f022fddfb5c244b3c6705f971ba3de07490d64789cd6b2aa420176f4b1

USER root

RUN \
wget -O "/usr/local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.24.2/cyclonedx-linux-x64 && \
echo "ef0d3b31d176e02bc594f83e19cfcea053c6bc5b197351f71696e189390f851d /usr/local/bin/cyclonedx" | sha256sum -c && \
chmod +x "/usr/local/bin/cyclonedx"

USER gitpod

0 comments on commit 65c0714

Please sign in to comment.