Skip to content

Commit

Permalink
Merge branch 'main' into issue-366
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmea authored Oct 22, 2024
2 parents db7a9d2 + 220845d commit 54c108b
Show file tree
Hide file tree
Showing 35 changed files with 581 additions and 434 deletions.
27 changes: 24 additions & 3 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
---

# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes

changelog:
exclude:
labels:
- ignore-for-release
- duplicate
- invalid
- modulesync
- question
- skip-changelog
- wont-fix
- wontfix
- github_actions

categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- backwards-incompatible

- title: New Features 🎉
labels:
- enhancement

- title: Bug Fixes 🐛
labels:
- bug

- title: Documentation Updates 📚
labels:
- documentation
- docs

- title: Dependency Updates ⬆️
labels:
- dependencies

- title: Other Changes
labels:
- "*"
1 change: 1 addition & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'main'
tags:
- '*'
workflow_dispatch:

env:
TAG: ${{ github.ref_name == 'main' && 'development' || github.ref_name }}
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v4

- name: Build Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: 'ci/hdm:${{ github.sha }}'
Expand All @@ -74,3 +74,24 @@ jobs:
name: Test suite
steps:
- run: echo Test suite completed

dependabot:
permissions:
contents: write
name: 'Dependabot auto-merge'
needs:
- tests
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34 changes: 0 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,6 @@ jobs:
with:
fetch-depth: 0

# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true

# - name: Prep Environment
# run: |
# bundle config set --local with 'release'
# bundle install
# mkdir -p build

# - name: Get previous Tag
# id: get-previous-tag
# run: |
# EXCLUDES=$(git describe --abbrev=0 --tags)
# PTAG=$(git describe --abbrev=0 --tags --exclude="${EXCLUDES}")
# echo "previous_tag=${PTAG}" >> "$GITHUB_OUTPUT"

# - name: Generate Changelog
# env:
# CHANGELOG_GITHUB_TOKEN: ${{ github.token }}
# run: |
# bundle exec github_changelog_generator \
# --user ${{ github.repository_owner }} \
# --project "hdm" \
# --since-tag ${{ steps.get-previous-tag.outputs.previous_tag }} \
# --future-release ${{ github.ref_name }} \
# --output build/changelog.md

# - name: Create Release
# env:
# GH_TOKEN: ${{ github.token }}
# run: gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"

- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/security_scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Security Scanning 🕵️

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
scan_ci_container:
name: 'Scan CI container'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build CI container
uses: docker/build-push-action@v6
with:
context: .
tags: 'ci/hdm:${{ github.sha }}'
push: false

- name: Scan image with Anchore Grype
uses: anchore/scan-action@v5
id: scan
with:
image: 'ci/hdm:${{ github.sha }}'
fail-build: false

- name: Inspect action SARIF report
run: jq . ${{ steps.scan.outputs.sarif }}

- name: Upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
43 changes: 0 additions & 43 deletions .github/workflows/trivy-analysis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/.bundle
/.vendor
/vendor/bundle
/vendor/ruby

# Ignore the default SQLite database.
/db/*.sqlite3
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.3.1
ruby-3.3.5
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.3.1
ruby 3.3.5
Loading

0 comments on commit 54c108b

Please sign in to comment.