From 7b6b6df09691721bbd3b16706ab8e4cb8b958244 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 21 Jul 2024 17:40:02 +0200 Subject: [PATCH] Switch to a custom Jekyll build --- .github/workflows/pages.yml | 36 ++++++++++++++++++++++++++++++++++++ Dockerfile | 2 +- Gemfile | 2 +- Gemfile.lock | 10 +++++----- README.md | 1 + 5 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..d92323e --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,36 @@ +name: Pages +on: + push: + branches: + - master +permissions: + contents: read + pages: write + id-token: write +jobs: + Build: + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3.4 + bundler-cache: true + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build Jekyll + run: bundle exec jekyll build + env: + JEKYLL_ENV: production + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + Deploy: + environment: + name: github-pages + runs-on: ubuntu-22.04 + needs: Build + steps: + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 diff --git a/Dockerfile b/Dockerfile index a8b7961..836abff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.3.3 +FROM ruby:3.3.4 WORKDIR /GTFOBins/ diff --git a/Gemfile b/Gemfile index e8a7006..0c6be20 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ source 'https://rubygems.org' -gem 'jekyll' +gem 'jekyll', '~> 4.3.3' diff --git a/Gemfile.lock b/Gemfile.lock index 60a2558..e53075b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -54,12 +54,12 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.3.1) + rexml (3.3.2) strscan rouge (4.3.0) safe_yaml (1.0.5) - sass-embedded (1.77.5-x86_64-linux-gnu) - google-protobuf (>= 3.25, < 5.0) + sass-embedded (1.77.8-x86_64-linux-gnu) + google-protobuf (~> 4.26) strscan (3.1.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) @@ -67,10 +67,10 @@ GEM webrick (1.8.1) PLATFORMS - x86_64-linux-gnu + x86_64-linux DEPENDENCIES - jekyll + jekyll (~> 4.3.3) BUNDLED WITH 2.5.11 diff --git a/README.md b/README.md index 3efc5d8..a999124 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # GTFOBins [![CI status](https://github.com/GTFOBins/GTFOBins.github.io/actions/workflows/ci.yml/badge.svg)](https://github.com/GTFOBins/GTFOBins.github.io/actions?query=workflow:CI) +[![CI status](https://github.com/GTFOBins/GTFOBins.github.io/actions/workflows/pages.yml/badge.svg)](https://github.com/GTFOBins/GTFOBins.github.io/actions?query=workflow:Pages) GTFOBins is a curated list of Unix-like executables that can be used to bypass local security restrictions in misconfigured systems.