Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"source=go-dev-container-bashhistory,target=/commandhistory,type=volume",
"source=go-dev-container-plugins,target=/home/vscode/.vscode-server/extensions,type=volume",
///// The following should be the same for all dev containers using this image. The post_start_command.sh relies on these.
// Your host should have a .docker directory set up and you should be logged into any Artifactory
// repositories you need access to in the dev container. Logging into a repo inside the dev container will not stick.
// Your host should have a .docker directory set up and you should be logged into any repos you need access to.
// Logging into a repo inside the dev container will not stick.
"source=${localEnv:HOME}/.docker,target=/home/vscode/.docker-localhost,type=bind",
// If you will be working with Kubernetes you should have a configured kube config file in your .kube directory.
"source=${localEnv:HOME}/.kube,target=/home/vscode/.kube-localhost,type=bind",
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ cspell.sh
dev.sh
Dockerfile
README.md
images/**
run.sh
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
disable-sudo: true
egress-policy: block
Expand All @@ -31,4 +31,4 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: 'Dependency Review'
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9
4 changes: 2 additions & 2 deletions .github/workflows/release-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
packages: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
disable-sudo: true
egress-policy: audit
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Build and Push Docker image
id: build
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
push: true
tags: ${{ env.TAG_MAJOR }},${{ env.TAG_MINOR }},${{ env.TAG_PATCH }},${{ env.TAG_LATEST }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
disable-sudo: true
egress-policy: audit
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
type=semver,pattern={{major}}

- name: Build and Push Docker Image
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
push: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
disable-sudo: true
egress-policy: block
Expand All @@ -56,7 +56,7 @@ jobs:
persist-credentials: false

- name: "Run Analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde
with:
results_file: results.sarif
results_format: sarif
Expand Down Expand Up @@ -87,6 +87,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to Code-Scanning"
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b
with:
sarif_file: results.sarif
6 changes: 3 additions & 3 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
disable-sudo: true
egress-policy: audit
Expand All @@ -57,7 +57,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Build Docker Image
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
push: false
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ github.sha }}
Expand All @@ -75,7 +75,7 @@ jobs:
TRIVY_SKIP_JAVA_DB_UPDATE: true

- name: Upload Trivy Results
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b
with:
sarif_file: 'trivy-results.sarif'

4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
rev: v8.27.2
hooks:
- id: gitleaks
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

# https://hub.docker.com/r/jdxcode/mise/tags
# This is latest.
FROM jdxcode/mise@sha256:f6a96c629ed75c908540acda407194e45544d10e982744b1f02fe78892aaa804 AS mise
FROM jdxcode/mise@sha256:5a4eb0b7b6687f2f42ad24d37a50e605b6064d4cd051edb3286a30311539715c AS mise

# https://hub.docker.com/r/rockylinux/rockylinux/tags
FROM rockylinux/rockylinux:9-ubil@sha256:a475955a742ea1e3f83d5765aec206804a714c9b654d17b691c9c17a5da02c8f AS final
FROM rockylinux/rockylinux:10-ubi@sha256:eca03145dd5e0b2a281eef164d391e4758b4a5962d29b688d15a72cef712fbb4 AS final

LABEL org.opencontainers.image.source=https://github.com/sarg3nt/go-dev-container

Expand Down
Loading