Skip to content
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

Update workflows and add .releaserc.yaml #2

Merged
merged 5 commits into from
Nov 21, 2024
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
29 changes: 25 additions & 4 deletions .github/workflows/checkov.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
name: Checkov
name: checkov
on:
push:
branches: [ "main"]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

jobs:
checkov:
scan:
runs-on: ubuntu-latest
steps:
- uses: makandra/github-actions/checkov-terraform@main
- uses: actions/checkout@v3

- name: Checkov GitHub Action
uses: bridgecrewio/checkov-action@v12
with:
output_format: cli,sarif
output_file_path: console,results.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2

if: success() || failure()
with:
path: .
sarif_file: results.sarif
4 changes: 4 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Conventional Commits

on:
pull_request:
permissions:
contents: read

jobs:
conventional-commits:
name: Conventional Commits
permissions:
contents: read
Fixed Show fixed Hide fixed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/precommit.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: "Semantic-Release"
on:
push:
branches:
- master
- main
permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Tflint
on:
pull_request:

permissions:
contents: read

jobs:
tflint:
permissions:
contents: read
Fixed Show fixed Hide fixed
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
8 changes: 8 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 makandra
Copyright (c) 2024 makandra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 0 additions & 27 deletions package.json

This file was deleted.

Loading