Skip to content

Commit 4a5448c

Browse files
c3y1huangmergify[bot]
authored andcommitted
chore: pin GH actions to commit sha
longhorn/longhorn-12841 Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com> (cherry picked from commit 4c45ba1) # Conflicts: # .github/workflows/conventional_commits.yml # .github/workflows/fossa.yml
1 parent 6b16d21 commit 4a5448c

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/conventional_commits.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
commit-lint:
1616
runs-on: ubuntu-latest
1717
steps:
18+
<<<<<<< HEAD
1819
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1920
with:
2021
fetch-depth: 0
@@ -39,3 +40,33 @@ jobs:
3940
ci
4041
revert
4142
BREAKING
43+
=======
44+
- name: Checkout PR commits
45+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
46+
with:
47+
fetch-depth: 0
48+
ref: ${{ github.event.pull_request.head.sha }}
49+
50+
- name: Lint Commits
51+
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
52+
53+
- name: Lint Pull Request
54+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
types: |
59+
feat
60+
fix
61+
docs
62+
style
63+
refactor
64+
perf
65+
test
66+
chore
67+
vendor
68+
build
69+
ci
70+
revert
71+
BREAKING
72+
>>>>>>> 4c45ba1 (chore: pin GH actions to commit sha)

.github/workflows/fossa.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: fossa
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- v*
7+
tags:
8+
- v*
9+
pull_request:
10+
branches:
11+
- master
12+
- v*
13+
workflow_dispatch: {}
14+
15+
permissions: {}
16+
17+
jobs:
18+
fossa-scan:
19+
if: github.repository == 'longhorn/longhorn-share-manager' # FOSSA is not intended to run on forks.
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
env:
24+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
25+
steps:
26+
- name: "Checkout code"
27+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
28+
29+
- name: "Run FOSSA Scan"
30+
uses: fossas/fossa-action@c414b9ad82eaad041e47a7cf62a4f02411f427a0 # v1.8.0 # Use a specific version if locking is preferred
31+
with:
32+
api-key: ${{ secrets.FOSSA_API_KEY }}
33+
project: longhorn-share-manager

0 commit comments

Comments
 (0)