Skip to content

Commit

Permalink
Merge pull request #4 from PunGrumpy/dev/ci
Browse files Browse the repository at this point in the history
ci(github-actions): make something new on workflows
  • Loading branch information
PunGrumpy authored Nov 19, 2023
2 parents a8252a7 + e6e90ff commit 61c7bb4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .github/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
format: json
exit-code: 1
severity: CRITICAL
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
env:
SCOPRE_OWNER: '@pungrumpy'
jobs:
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,12 @@ jobs:
run: bun install
- name: βš–οΈ Lint
run: bun lint
- name: πŸŽ… Upload Artifacts
uses: actions/upload-artifact@v3
if: ${{ steps.cache-bun.outputs.cache-hit != 'true' }}
with:
name: bun-cache
path: ~/.bun
release:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
if: ${{ github.event_name == 'push' }}
if: ${{ github.ref == 'refs/heads/main' }} && !contains(github.event.head_commit.message, '[skip ci]')
name: πŸš€ Release
permissions:
contents: write
Expand All @@ -72,7 +66,6 @@ jobs:
with:
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}
package-name: logixlysia
- name: πŸ”” Checkout
uses: actions/checkout@v4
- name: 🏷️ Tag stable versions
Expand All @@ -95,11 +88,6 @@ jobs:
runs-on: ${{ matrix.os }}
if: failure()
steps:
- name: 🎁 Download Artifacts
uses: actions/download-artifact@v3
with:
name: bun-cache
path: ~/.bun
- name: πŸ•‹ Send Issue
uses: JasonEtco/create-an-issue@v2
id: send-issue
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,33 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: πŸ’‚ Security
name: πŸ„ TruffleHog OSS
runs-on: ${{ matrix.os }}
steps:
- name: πŸ„ TruffleHog OSS
- name: πŸ›« Checkout Code
uses: actions/checkout@v4
- name: 🐷 TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
gitguardian:
trivy:
concurrency:
group: security/${{ github.event.repository.name }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: πŸ›‘οΈ GitGuardian
name: 🐳 Trivy
runs-on: ${{ matrix.os }}
steps:
- name: πŸ¦‰ GitGuardian
uses: GitGuardian/[email protected]
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
- name: πŸ›« Checkout Code
uses: actions/checkout@v4
- name: 🐳 Trivy
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: .github/trivy.yaml

0 comments on commit 61c7bb4

Please sign in to comment.