Skip to content

Add Better Release Support #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jan 8, 2025
Merged
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
47 changes: 47 additions & 0 deletions .github/workflows/update-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CodeQL Update Release

on:
workflow_dispatch:
inputs:
mode:
description: "Please select the bump version"
required: true
type: choice
default: "patch"
options:
- patch
- minor
- major

jobs:
update-release:
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@8e4e6fbf6fcc8a272781d97597969d21b3812974 # v4.0.0
with:
application_id: ${{ secrets.SECLABS_APP_ID }}
application_private_key: ${{ secrets.SECLABS_APP_KEY }}

- name: "Patch Release Me"
uses: 42ByteLabs/patch-release-me@1e802ecb51cf4c5869cb77563df59b2fbe6f584c # 0.4.1
with:
# Bump (patch)
mode: ${{ inputs.mode }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
with:
token: ${{ steps.get_workflow_token.outputs.token }}
title: "Chore: Auto Update new Release"
commit-message: "[chore]: Auto Patch new Release"
body: |
This is automatically created as a chore to patch and update the release.
branch: "auto-patch-release"
labels: "version"
delete-branch: true
20 changes: 20 additions & 0 deletions .release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "CodeQL Community Packs"
repository: "githubsecuritylab/codeql-community-packs"
version: "0.2.0"

ecosystem: CodeQL
excludes:
- "/.codeql/"
- "/codeql/"

locations:
- name: "CodeQL Configurations"
paths:
- "configs/*.yml"
patterns:
- "{owner}/codeql-[a-zA-Z]*-queries@{version}"
- name: "CodeQL Pack Libraries"
paths:
- "**/qlpack.yml"
patterns:
- '{owner}/codeql-[a-zA-Z]*-libs:\s*{version}'
Loading