Skip to content

Commit 58d1cc6

Browse files
[setup](build): base workflows (#53)
* [setup](build): base workflows * [setup](sec): codeql.yml * [setup](build): codeql.yml * [setup](web): Ruby Gemfile * [cleanup](build): jekyll_ai_related_posts-0.1.4.gem
1 parent f99ff5b commit 58d1cc6

File tree

10 files changed

+135
-13
lines changed

10 files changed

+135
-13
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
tags: []
4+
categories: []
5+
#date: 2019-06-25 13:14:15
6+
#excerpt: ''
7+
#image: 'BASEURL/assets/blog/img/.png'
8+
#description:
9+
#permalink:
10+
title: 'title'
11+
---
12+
13+
14+
permissions:
15+
actions: read|write|none
16+
checks: read|write|none
17+
contents: read|write|none
18+
deployments: read|write|none
19+
issues: read|write|none
20+
packages: read|write|none
21+
pull-requests: read|write|none
22+
repository-projects: read|write|none
23+
security-events: read|write|none
24+
statuses: read|write|noner

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
runs-on: "ubuntu-latest"
1616
strategy:
1717
matrix:
18-
jekyll: ["~> 3.9", "~> 4.2"]
18+
jekyll: ["~> 4.3.4"]
1919
env:
2020
JEKYLL_VERSION: ${{ matrix.jekyll }}
2121
steps:
2222
- name: Checkout Repository
2323
uses: actions/[email protected]
2424
- name: Set Up Ruby 3.3.6
25-
uses: ruby/setup-ruby@v1.202.0
25+
uses: ruby/setup-ruby@v1.206.0
2626
with:
2727
ruby-version: 3.3.6
2828
bundler-cache: true

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
language: ["ruby"]
38+
language: ["ruby","C#"]
3939
# CodeQL supports [ $supported-codeql-languages ]
4040
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4141

@@ -45,7 +45,7 @@ jobs:
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/autobuild@v2.19.3
48+
uses: github/codeql-action/autobuild@v2.20.0
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@v3.27.4
58+
uses: github/codeql-action/autobuild@v2.20.0
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,6 +68,6 @@ jobs:
6868
# ./location_of_script_within_repo/buildscript.sh
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2.19.3
71+
uses: github/codeql-action/analyze@v2.20.0
7272
with:
7373
category: "/language:${{matrix.language}}"

.github/workflows/jekyll.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: jekyll.yml – Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["main", "_staging", "next"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/[email protected]
36+
- name: Setup Ruby
37+
uses: ruby/[email protected]
38+
with:
39+
ruby-version: '3.3.6' # Not needed with a .ruby-version file
40+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41+
cache-version: 1 # Increment this number if you need to re-download cached gems
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/[email protected]
45+
- name: Build with Jekyll
46+
# Outputs to the './_site' directory by default
47+
run: bundle exec jekyll build --trace --incremental --baseurl "${{ steps.pages.outputs.base_path }}"
48+
env:
49+
JEKYLL_ENV: production
50+
JEKYLL_GITHUB_TOKEN: ${{secrets.JEKYLL_METADATA_TOKEN}}
51+
LOG_LEVEL: debug
52+
- name: Upload artifact
53+
# Automatically uploads an artifact from the './_site' directory by default
54+
uses: actions/[email protected]
55+
56+
# Deployment job
57+
deploy:
58+
environment:
59+
name: github-pages
60+
url: ${{ steps.deployment.outputs.page_url }}
61+
runs-on: ubuntu-latest
62+
needs: build
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/[email protected]

.github/workflows/permission_advisor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
advisor:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: GitHubSecurityLab/actions-permissions/[email protected]beta4
24+
- uses: GitHubSecurityLab/actions-permissions/[email protected]beta5
2525
with:
2626
name: ${{ inputs.name }}
2727
count: ${{ inputs.count }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release.yml – Release
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
- next
77
- beta
88
- "*.x"

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: scorecard.yml — OpenSSF Scorecard
44
- cron: 31 2 * * 1
55
push:
66
branches:
7-
- master
7+
- main
88
permissions: read-all
99
jobs:
1010
analysis:
@@ -31,6 +31,6 @@ jobs:
3131
path: results.sarif
3232
retention-days: 5
3333
- name: Upload to code-scanning
34-
uses: github/codeql-action/upload-sarif@v2.19.3
34+
uses: github/codeql-action/upload-sarif@v2.20.0
3535
with:
36-
sarif_file: results.sarif
36+
sarif_file: results.sarif

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: test.yml — Test
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
# renovate/** branches are generated by https://github.com/apps/renovate
88
- renovate/**
99

.github/workflows/workflows.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
layout: page
3+
title: GitHub Workflows
4+
#permalink: /Astronomy/
5+
---
6+
7+
## Revision Date: 2024-12-27 2:31 PM
8+
9+
| action | date | github |
10+
|---|---|---|
11+
| DavidAnson/[email protected] | Nov 14, 2024 |[DavidAnson/markdownlint-cli2-action: A GitHub Action to run the markdownlint-cli2 tool for linting Markdown/CommonMark files with the markdownlint library](https://github.com/DavidAnson/markdownlint-cli2-action) |
12+
| GitHubSecurityLab/actions-permissions/[email protected] | Dec 19, 2024 | [GitHubSecurityLab/actions-permissions: GitHub token permissions Monitor and Advisor actions](https://github.com/GitHubSecurityLab/actions-permissions) |
13+
| actions/[email protected] | Oct 23, 2024 | [actions/checkout: Action for checking out a repo](https://github.com/actions/checkout) |
14+
| actions/[email protected] | Mar 29, 2024 | [actions/configure-pages: An action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.](https://github.com/actions/configure-pages) |
15+
| actions/[email protected] | Nov 20, 2024 | [actions/dependency-review-action: A GitHub Action for detecting vulnerable dependencies and invalid licenses in your PRs](https://github.com/actions/dependency-review-action) |
16+
| actions/[email protected] | Mar 18, 2024 | [actions/deploy-pages: GitHub Action to publish artifacts to GitHub Pages for deployments](https://github.com/actions/deploy-pages) |
17+
| actions/[email protected] | Aug 6, 2024 | [actions/jekyll-build-pages: A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages.](https://github.com/actions/jekyll-build-pages) |
18+
| actions/[email protected] | Oct 24, 2024 | [actions/setup-node: Set up your GitHub Actions workflow with a specific version of node.js](https://github.com/actions/setup-node) |
19+
| actions/[email protected] | Dec 19, 2024 | [actions/upload-artifact](https://github.com/actions/upload-artifact) |
20+
| actions/[email protected] | Feb 7, 2024 | [actions/upload-pages-artifact: A composite action for packaging and uploading an artifact that can be deployed to GitHub Pages.](https://github.com/actions/upload-pages-artifact) |
21+
| amannn/[email protected] | Jun 28, 2024 | [amannn/action-semantic-pull-request: A GitHub Action that ensures that your PR title matches the Conventional Commits spec](https://github.com/amannn/action-semantic-pull-request) |
22+
| github/codeql-action/[email protected] | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) |
23+
| github/codeql-action/[email protected] | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) |
24+
| github/codeql-action/[email protected] | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) |
25+
| github/codeql-action/[email protected] | Dec 12, 2024 | [github/codeql-action: Actions for running CodeQL analysis](https://github.com/github/codeql-action) |
26+
| googleapis/[email protected] | Jun 10, 2024 | [googleapis/release-please-action: automated releases based on conventional commits](https://github.com/googleapis/release-please-action)
27+
| googleapis/[email protected] | Dec 2, 2024 | [googleapis/release-please: generate release PRs based on the conventionalcommits.org spec](https://github.com/googleapis/release-please) |
28+
| lowlighter/[email protected] | Sep 12, 2023 | [lowlighter/metrics: 📊 An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!](https://github.com/lowlighter/metrics) |
29+
| ossf/[email protected] | Jul 26, 2024 | [ossf/scorecard-action: Official GitHub Action for OpenSSF Scorecard.](https://github.com/ossf/scorecard-action) |
30+
| ruby/[email protected] | Dec 26, 2024 | [ruby/setup-ruby: An action to download a prebuilt Ruby and add it to the PATH in 5 seconds](https://github.com/ruby/setup-ruby) |
31+
| step-security/[email protected] | Nov 18, 2024 | [step-security/harden-runner: Network egress filtering and runtime security for GitHub-hosted and self-hosted runners](https://github.com/step-security/harden-runner) |

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ gem 'jekyll-github-metadata', '~> 2.16', '>= 2.16.1'
2828
gem 'jekyll-last-modified-at', '~> 1.3', '>= 1.3.2'
2929
gem 'jekyll-mentions', '~> 1.6'
3030
gem 'jekyll-optional-front-matter', '~> 0.3.2'
31+
gem 'jekyll-paginate', '~> 1.1'
3132
gem 'jekyll-readme-index', '~> 0.3.0'
3233
gem 'jekyll-relative-links', '~> 0.7.0'
3334
gem 'jekyll-seo-tag', '~> 2.8'
@@ -45,4 +46,4 @@ gem 'base64', '~> 0.2.0'
4546
# { 2024-10-29 @RalphHightower
4647
gem 'nuggets', '~> 1.6', '>= 1.6.1'
4748
# } 2024-10-29 @RalphHightower
48-
end
49+
end

0 commit comments

Comments
 (0)