8 Commits

Author SHA1 Message Date
728bae9120 chore(deps): update actions/checkout action to v6
All checks were successful
Cog check / Create release (pull_request) Successful in 11s
2025-11-21 00:01:07 +00:00
2ae472fd70 feat(cog): disable monorepo packages
All checks were successful
Cog release / Create release (push) Successful in 7s
2024-11-21 22:53:30 +02:00
bff92f363b feat(cog): format files
All checks were successful
Cog release / Create release (push) Successful in 7s
2024-11-21 22:51:18 +02:00
5eefad3bfc feat(cog): remove ability to specify if we need to check from latest tag only
All checks were successful
Cog Release / Create release (push) Successful in 7s
2024-11-21 22:48:40 +02:00
fcc9ac5d86 feat(cog): add ability to specify if we need to check from latest tag only 2024-11-21 22:40:53 +02:00
3512ce520d feat(cog): update package names
Some checks failed
Cog Check / Create release (pull_request) Successful in 6s
Cog Release / Create release (push) Failing after 7s
2024-11-21 22:30:37 +02:00
c5017145ca feat(cog): specify git username/email
Some checks failed
Cog Check / Create release (pull_request) Failing after 5s
2024-11-21 22:27:41 +02:00
6daafc6841 feat(cog)!: update how releases are handled 2024-11-21 22:27:22 +02:00
12 changed files with 65 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx

View File

@@ -0,0 +1,28 @@
---
name: Cog check
on:
pull_request:
workflow_call:
# inputs:
# check-latest-tag-only:
# type: boolean
# required: false
# default: true
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Semver release
uses: cocogitto/cocogitto-action@v3
with:
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
check-latest-tag-only: true
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"

View File

@@ -1,6 +1,15 @@
name: Release
---
name: Cog release
on:
push:
branches:
- main
workflow_call:
# inputs:
# check-latest-tag-only:
# type: boolean
# required: false
# default: true
jobs:
release:
@@ -8,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -26,6 +35,7 @@ jobs:
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"
check-latest-tag-only: true
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md

View File

@@ -27,7 +27,7 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Retrieve artifacts
id: download
uses: actions/download-artifact@v3
@@ -42,7 +42,7 @@ jobs:
exit "$(cat exitcode)";
fi
- name: Clone blackbox repo
uses: actions/checkout@v4
uses: actions/checkout@v6
if: ${{ steps.check.outputs.code == 2 }}
with:
repository: xaked/blackbox

View File

@@ -31,9 +31,9 @@ jobs:
tofu_version: ${{ inputs.tofu-version }}
cli_config_credentials_token: ${{ secrets.tf-api-token }}
- name: Clone repo
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Clone blackbox repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: xaked/blackbox
path: blackbox

View File

@@ -13,7 +13,7 @@ jobs:
steps:
- name: Clone blackbox repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: xaked/blackbox
path: blackbox

View File

@@ -9,7 +9,7 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Run Trivy vulnerability scanner in IaC mode (LOW/MED)
uses: aquasecurity/trivy-action@master
with:

View File

@@ -43,7 +43,7 @@ jobs:
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
token: ${{ secrets.gitea-token }}
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances

View File

@@ -22,7 +22,7 @@ jobs:
steps:
- name: Clone repo
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Retrieve artifacts
id: download
uses: actions/download-artifact@v3
@@ -37,7 +37,7 @@ jobs:
exit "$(cat exitcode)";
fi
- name: Clone blackbox repo
uses: actions/checkout@v4
uses: actions/checkout@v6
if: ${{ steps.check.outputs.code == 2 }}
with:
repository: xaked/blackbox

View File

@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install terraform docs

View File

@@ -26,9 +26,9 @@ jobs:
terraform_version: 1.7.5
cli_config_credentials_token: ${{ secrets.tf-api-token }}
- name: Clone repo
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Clone blackbox repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: xaked/blackbox
path: blackbox

12
cog.toml Normal file
View File

@@ -0,0 +1,12 @@
# [packages]
# build-docker-image = { path = ".gitea/workflows/build-docker-image.yml" }
# cog-check = { path = ".gitea/workflows/cog-check.yml" }
# cog-release = { path = ".gitea/workflows/cog-release.yml" }
# otf-apply = { path = ".gitea/workflows/otf-apply.yml" }
# otf-plan = { path = ".gitea/workflows/otf-plan.yml" }
# sec-blackbox-decrypt = { path = ".gitea/workflows/sec-blackbox-decrypt.yml" }
# sec-checks-trivy = { path = ".gitea/workflows/sec-checks-trivy.yml" }
# sec-megalinter = { path = ".gitea/workflows/sec-megalinter.yml" }
# tf-apply = { path = ".gitea/workflows/tf-apply.yml" }
# tf-docs = { path = ".gitea/workflows/tf-docs.yml" }
# tf-plan = { path = ".gitea/workflows/tf-plan.yml" }