Skip to content

Commit c9fac38

Browse files
[CLOUD-823] Bump clojure to 1.11.2 to quash vulnerabilities (#2)
Co-authored-by: Dean Chapman <dean.chapman@kroo.com>
1 parent c7f0cce commit c9fac38

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Code test on PR
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
env:
7+
GH_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
8+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
9+
AWS_REGION: ${{ secrets.AWS_REGION }}
10+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
11+
GPG_KEY: ${{ secrets.GPG_KEY }}
12+
13+
jobs:
14+
test:
15+
runs-on: kroo-runners
16+
container:
17+
image: 711525892256.dkr.ecr.eu-west-1.amazonaws.com/b-social/docker-pipeline-builder
18+
options: --add-host host.docker.internal:host-gateway
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.pull_request.head.ref }}
24+
repository: ${{ github.event.pull_request.head.repo.full_name }}
25+
- name: Test
26+
run: |
27+
. .github/workflows/setup-runner.sh
28+
start_docker
29+
./go

.github/workflows/setup-runner.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env -S bash -l
2+
. $HOME/.profile
3+
. /opt/dockerd/docker_daemon.sh
4+
5+
export GITHUB_ACTOR=bigmansocial
6+
export GITHUB_TOKEN=$GH_TOKEN
7+
export VAULT_ADDR=https://secret-store-default.management.b-anti-social.io
8+
9+
git config --global --add safe.directory /__w/halboy/halboy
10+
11+
if [ -d .git-crypt ]; then
12+
echo "$GPG_KEY" | gpg --import -
13+
git crypt unlock
14+
fi
15+
16+
git config --global url."https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com".insteadOf https://github.com

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:license {:name "MIT License"
44
:url "https://opensource.org/licenses/MIT"}
55
:url "https://github.com/jimmythompson/halboy"
6-
:dependencies [[org.clojure/clojure "1.11.1"]
6+
:dependencies [[org.clojure/clojure "1.11.2"]
77
[org.clojure/core.rrb-vector "0.1.2"]
88
[http-kit "2.6.0"]
99
[cheshire "5.11.0"]

0 commit comments

Comments
 (0)