Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/dependabot-changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
jobs:
dependabot-changie:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

Check failure on line 15 in .github/workflows/dependabot-changie.yaml

View workflow job for this annotation

GitHub Actions / Run zizmor

bot-conditions

dependabot-changie.yaml:15: spoofable bot actor check: actor context may be spoofable
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Create change file
uses: miniscruff/changie-action@v2
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
with:
version: latest
args: new --body "${{ github.event.pull_request.title }}" --kind Dependency

- uses: stefanzweifel/git-auto-commit-action@v7-next

Check failure on line 32 in .github/workflows/dependabot-changie.yaml

View workflow job for this annotation

GitHub Actions / Run zizmor

unpinned-uses

dependabot-changie.yaml:32: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 32 in .github/workflows/dependabot-changie.yaml

View workflow job for this annotation

GitHub Actions / pinact

pinact error

action can't be pinned
with:
commit_message: "chore(deps): add changelog for dependabot updates"
commit_user_name: "dependabot[bot]"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pinact.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pinact

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- ".github/workflows/**"
- ".github/actions/**"

permissions: {}

jobs:
pinact:
# Only run on pull requests from the same repository
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Pin actions
uses: suzuki-shunsuke/pinact-action@cf51507d80d4d6522a07348e3d58790290eaf0b6 # v2.0.0
with:
skip_push: true
verify: true
min_age: 7
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0

Check failure on line 15 in .github/workflows/release.yaml

View workflow job for this annotation

GitHub Actions / Run zizmor

cache-poisoning

release.yaml:15: runtime artifacts potentially vulnerable to a cache poisoning attack: enables caching by default
with:
go-version-file: "go.mod"

- name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
uses: paultyng/ghaction-import-gpg@53deb67fe3b05af114ad9488a4da7b782455d588 # v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
with:
version: latest
args: release --rm-dist
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -28,25 +28,25 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: 'go.mod'
cache: true

- name: golangci-lint
continue-on-error: true
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
args: --issues-exit-code=0 --timeout=5m

- name: Run tests
run: go test -race -coverprofile=coverage.out -covermode=atomic -coverpkg=./... -v ./...

- name: Upload to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
with:
verbose: true

Expand All @@ -59,12 +59,12 @@ jobs:
pull-requests: write
actions: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0

- name: Prepare release
uses: labd/changie-release-action@v0.3.2
uses: labd/changie-release-action@cabe11e8578d5867ea0695351fd37e85ecb32aa6 # v0.3.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release-workflow: 'release.yaml'
2 changes: 1 addition & 1 deletion .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
steps:
- name: get app token
id: get-app-token
uses: labd/action-gh-app-token@main

Check failure on line 18 in .github/workflows/triage.yaml

View workflow job for this annotation

GitHub Actions / Run zizmor

unpinned-uses

triage.yaml:18: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 18 in .github/workflows/triage.yaml

View workflow job for this annotation

GitHub Actions / pinact

pinact error

action can't be pinned
with:
app-id: ${{ secrets.RD_APP_ID }}
private-key: ${{ secrets.RD_APP_PRIVATE_KEY }}
installation-id: ${{ secrets.RD_APP_INSTALLATION_ID }}
- name: set to project board
uses: actions/add-to-project@v1.0.2
uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: https://github.com/orgs/labd/projects/3
github-token: ${{ steps.get-app-token.outputs.app-token }}
32 changes: 32 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Zizmor

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- ".github/workflows/**"
- ".github/actions/**"

permissions: {}

jobs:
zizmor:
name: Run zizmor
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
advanced-security: false
annotations: true
min-severity: high
Loading