Skip to content

Commit c45ab35

Browse files
authored
Merge pull request #67 from alex-semenyuk/add_bot
Add OpenSSF Scorecard badge and fix CodeQL workflow
2 parents 3d1e771 + b94429d commit c45ab35

File tree

2 files changed

+26
-33
lines changed

2 files changed

+26
-33
lines changed

.github/workflows/codeql.yml

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,40 @@
11
name: "CodeQL"
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
7-
branches: [main]
8-
schedule:
9-
- cron: '0 11 * * 1'
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
1011

1112
concurrency:
12-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
group: ${{ github.workflow }}-${{ github.ref }}
1314
cancel-in-progress: true
1415

16+
permissions:
17+
contents: read
18+
1519
jobs:
1620
analyze:
1721
name: Analyze
18-
runs-on: ubuntu-22.04
19-
22+
runs-on: ubuntu-latest
23+
permissions:
24+
security-events: write
2025
strategy:
2126
fail-fast: false
2227
matrix:
23-
language: ['go']
24-
28+
language:
29+
- go
2530
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v4.1.7
28-
with:
29-
# We must fetch at least the immediate parents so that if this is
30-
# a pull request then we can checkout the head.
31-
fetch-depth: 2
32-
33-
# If this run was triggered by a pull request event, then checkout
34-
# the head of the pull request instead of the merge commit.
35-
- run: git checkout HEAD^2
36-
if: ${{ github.event_name == 'pull_request' }}
37-
38-
# Initializes the CodeQL tools for scanning.
39-
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v2
41-
with:
42-
languages: ${{ matrix.language }}
43-
44-
- name: Autobuild
45-
uses: github/codeql-action/autobuild@v2
46-
47-
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@v2
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v3
35+
with:
36+
languages: ${{ matrix.language }}
37+
- name: Autobuild
38+
uses: github/codeql-action/autobuild@v3
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Hits-of-Code](https://hitsofcode.com/github/hyperledger/firefly-tezosconnect?branch=main)](https://hitsofcode.com/view/github/hyperledger/firefly-tezosconnect?branch=main)
55
[![Go Reference](https://pkg.go.dev/badge/github.com/hyperledger/firefly-tezosconnect.svg)](https://pkg.go.dev/github.com/hyperledger/firefly-tezosconnect)
66
[![License](https://img.shields.io/badge/apache-2.0-blue.svg)](https://github.com/hyperledger/firefly-tezosconnect/blob/main/LICENSE)
7+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/hyperledger/firefly-tezosconnect/badge)](https://scorecard.dev/viewer/?uri=github.com/hyperledger/firefly-tezosconnect)
78

89
# Hyperledger FireFly Tezos Connector
910

0 commit comments

Comments
 (0)