Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 16, 2024
1 parent aaf1dec commit 6ccc6bd
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- name: install govulncheck
run: go install -v golang.org/x/vuln/cmd/[email protected]
- name: govuln sec scan
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ jobs:
if: github.event_name == 'issue_comment'
with:
submodules: true
persist-credentials: true
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ steps.pr_data.outputs.ref }}
- name: Normal check out code
uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
if: github.event_name == 'push' || github.event_name == 'pull_request'
- id: changed-files
uses: tj-actions/changed-files@v41
Expand Down Expand Up @@ -151,6 +153,8 @@ jobs:
security-events: write
steps:
- uses: actions/checkout@v3
with:
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-22.11
Expand Down Expand Up @@ -217,13 +221,15 @@ jobs:
if: github.event_name == 'issue_comment'
with:
submodules: true
persist-credentials: true
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ needs.build.outputs.ref }}
- name: Normal check out code
uses: actions/checkout@v3
if: github.event_name == 'push' || github.event_name == 'pull_request'
with:
submodules: true
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down Expand Up @@ -263,13 +269,15 @@ jobs:
if: github.event_name == 'issue_comment'
with:
submodules: true
persist-credentials: true
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ needs.build.outputs.ref }}
- name: Normal check out code
uses: actions/checkout@v3
if: github.event_name == 'push' || github.event_name == 'pull_request'
with:
submodules: true
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down Expand Up @@ -309,13 +317,15 @@ jobs:
if: github.event_name == 'issue_comment'
with:
submodules: true
persist-credentials: true
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ needs.build.outputs.ref }}
- name: Normal check out code
uses: actions/checkout@v3
if: github.event_name == 'push' || github.event_name == 'pull_request'
with:
submodules: true
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down Expand Up @@ -412,6 +422,8 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buildwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- name: Set GOBIN
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: true
- uses: actions/setup-go@v3
with:
go-version: 1.22
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v3
with:
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- id: changed-files
uses: tj-actions/changed-files@v41
with:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand All @@ -40,6 +41,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -83,6 +85,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand All @@ -104,6 +107,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -139,6 +143,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -174,6 +179,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -209,6 +215,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -244,6 +251,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -279,6 +287,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -314,6 +323,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down Expand Up @@ -350,6 +360,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
environment: release
steps:
- uses: actions/checkout@v3
with:
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-22.11
Expand Down Expand Up @@ -57,6 +59,8 @@ jobs:
environment: release
steps:
- uses: actions/checkout@v3
with:
persist-credentials: true
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-22.11
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
persist-credentials: true
# Run the "semgrep ci" command on the command line of the docker image.
- run: semgrep ci
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/staticmajor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
persist-credentials: true
- name: Staticmajor action
id: staticmajor
uses: orijtech/staticmajor-action@main
Expand Down

0 comments on commit 6ccc6bd

Please sign in to comment.