Skip to content

Commit 95c3f59

Browse files
authored
Merge pull request #21 from maxmind/horgh/modver
Add modver GitHub Action
2 parents 55e5723 + 8d2917a commit 95c3f59

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

.github/workflows/codeql-analysis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: "Code scanning - action"
22

33
on:
4-
push:
5-
branches-ignore:
6-
- 'dependabot/**'
74
pull_request:
85
schedule:
96
- cron: '0 11 * * 2'
107

8+
permissions:
9+
security-events: write # Used by this action.
10+
1111
jobs:
1212
CodeQL-Build:
1313

@@ -25,7 +25,7 @@ jobs:
2525
# the head of the pull request instead of the merge commit.
2626
- run: git checkout HEAD^2
2727
if: ${{ github.event_name == 'pull_request' }}
28-
28+
2929
# Initializes the CodeQL tools for scanning.
3030
- name: Initialize CodeQL
3131
uses: github/codeql-action/init@v3

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
go-version: [1.18.x, 1.19.x]
14+
go-version: [1.21.x, 1.22.x]
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
1616
runs-on: ${{ matrix.platform }}
1717
name: "Build ${{ matrix.go-version }} test on ${{ matrix.platform }}"

.github/workflows/modver.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: modver
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read # This gets granted by default, so keep granting it.
8+
packages: read # This gets granted by default, so keep granting it.
9+
pull-requests: write # Needed to comment on the PR.
10+
11+
jobs:
12+
modver:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: bobg/[email protected]
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ Please report bugs by filing an issue with our GitHub issue tracker at
6666
6767
## Copyright and License
6868
69-
This software is Copyright (c) 2022 by MaxMind, Inc.
69+
This software is Copyright (c) 2022 - 2024 by MaxMind, Inc.
7070
7171
This is free software, licensed under the [Apache License, Version 2.0](LICENSE-APACHE) or the [MIT License](LICENSE-MIT), at your option.

0 commit comments

Comments
 (0)