Skip to content

Commit f12a731

Browse files
github-actions[bot]github-actionsfabasoad
authored
Bump gitleaks/gitleaks from 8.18.0 to 8.18.1 (#6)
* docs(license): update copyright year(s) * Bump gitleaks/gitleaks from 8.18.0 to 8.18.1 --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: fabasoad <fabasoad@gmail.com>
1 parent f4cf646 commit f12a731

9 files changed

Lines changed: 92 additions & 52 deletions

File tree

.github/workflows/functional-tests-local.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@
22
name: Functional tests (Local)
33

44
on: # yamllint disable-line rule:truthy
5+
pull_request: {}
56
push:
67
branches:
78
- "main"
8-
pull_request:
9+
10+
defaults:
11+
run:
12+
shell: sh
913

1014
jobs:
11-
functional_tests:
15+
functional-tests:
1216
name: Functional tests
1317
timeout-minutes: 5
1418
runs-on: ubuntu-latest
1519
steps:
16-
- uses: actions/checkout@v4
20+
- name: Checkout ${{ github.repository }}
21+
uses: actions/checkout@v4
1722
- uses: ./
1823
id: pascal
1924
with:
2025
path: ./HelloWorld.pas
2126
- name: Validate result
2227
run: |
23-
[[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ]] || exit 1;
28+
[ "Hello World!" = "${{ steps.pascal.outputs.result }}" ] || exit 1;

.github/workflows/functional-tests-remote.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@ on: # yamllint disable-line rule:truthy
66
branches:
77
- "main"
88

9+
defaults:
10+
run:
11+
shell: sh
12+
913
jobs:
10-
functional-tests:
14+
functional-tests-remote:
1115
name: Functional tests
1216
timeout-minutes: 5
1317
runs-on: ubuntu-latest
1418
steps:
15-
- uses: actions/checkout@v4
16-
- uses: fabasoad/pascal-action@main
19+
- name: Checkout ${{ github.repository }}
20+
uses: actions/checkout@v4
21+
- name: Run Pascal script
22+
uses: fabasoad/pascal-action@main
1723
id: pascal
1824
with:
1925
path: ./HelloWorld.pas
2026
- name: Validate result
2127
run: |
22-
[[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ]] || exit 1;
28+
[ "Hello World!" = "${{ steps.pascal.outputs.result }}" ] || exit 1;

.github/workflows/linting.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Linting
3+
4+
on: # yamllint disable-line rule:truthy
5+
pull_request: {}
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
pre-commit:
12+
name: Pre-commit
13+
uses: fabasoad/reusable-workflows/.github/workflows/wf-pre-commit.yml@main

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
name: Create release
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- name: Checkout ${{ github.repository }}
15+
uses: actions/checkout@v4
1516
with:
1617
fetch-depth: 0
1718
- name: Get changelog

.github/workflows/security.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Security
3+
4+
on: # yamllint disable-line rule:truthy
5+
pull_request: {}
6+
push:
7+
branches:
8+
- main
9+
10+
defaults:
11+
run:
12+
shell: sh
13+
14+
jobs:
15+
code-scanning:
16+
name: Code scanning
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout ${{ github.repository }}
20+
uses: actions/checkout@v4
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v3
23+
with:
24+
languages: "javascript"
25+
- name: Perform CodeQL Analysis
26+
id: codeql-analysis
27+
uses: github/codeql-action/analyze@v3
28+
- name: Upload to GHAS
29+
if: always()
30+
uses: github/codeql-action/upload-sarif@v3
31+
with:
32+
category: "code-scanning"
33+
sarif_file: "${{ steps.codeql-analysis.outputs.sarif-output }}"
34+
directory-scanning:
35+
name: Directory scanning
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout ${{ github.repository }}
39+
uses: actions/checkout@v4
40+
- name: Scan current project
41+
id: scan-directory
42+
uses: anchore/scan-action@v3
43+
with:
44+
by-cve: "true"
45+
path: "."
46+
- name: Upload to GHAS
47+
if: always()
48+
uses: github/codeql-action/upload-sarif@v3
49+
with:
50+
category: "directory-scanning"
51+
sarif_file: "${{ steps.scan-directory.outputs.sarif }}"

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
hooks:
1010
- id: detect-secrets
1111
- repo: https://github.com/gitleaks/gitleaks
12-
rev: v8.18.0
12+
rev: v8.18.1
1313
hooks:
1414
- id: gitleaks
1515
# Dockerfile
@@ -20,13 +20,13 @@ repos:
2020
stages: ["push"]
2121
# Markdown
2222
- repo: https://github.com/igorshubovych/markdownlint-cli
23-
rev: v0.37.0
23+
rev: v0.38.0
2424
hooks:
2525
- id: markdownlint-fix
2626
stages: ["commit"]
2727
# Yaml
2828
- repo: https://github.com/adrienverge/yamllint
29-
rev: v1.32.0
29+
rev: v1.33.0
3030
hooks:
3131
- id: yamllint
3232
stages: ["push"]
@@ -39,7 +39,7 @@ repos:
3939
stages: ["push"]
4040
# Other
4141
- repo: https://github.com/pre-commit/mirrors-prettier
42-
rev: v3.0.3
42+
rev: v3.1.0
4343
hooks:
4444
- id: prettier
4545
stages: ["commit"]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2023 Yevhen Fabizhevskyi
3+
Copyright (c) 2020-2024 Yevhen Fabizhevskyi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
![GitHub release](https://img.shields.io/github/v/release/fabasoad/pascal-action?include_prereleases)
77
![functional-tests-local](https://github.com/fabasoad/pascal-action/actions/workflows/functional-tests-local.yml/badge.svg)
88
![functional-tests-remote](https://github.com/fabasoad/pascal-action/actions/workflows/functional-tests-remote.yml/badge.svg)
9-
![pre-commit](https://github.com/fabasoad/pascal-action/actions/workflows/pre-commit.yml/badge.svg)
9+
![security](https://github.com/fabasoad/pascal-action/actions/workflows/security.yml/badge.svg)
10+
![linting](https://github.com/fabasoad/pascal-action/actions/workflows/linting.yml/badge.svg)
1011

1112
This action runs Pascal script.
1213

0 commit comments

Comments
 (0)