Skip to content

Commit

Permalink
Merge branch 'main' into memory-safety-probe
Browse files Browse the repository at this point in the history
  • Loading branch information
balteravishay authored Feb 18, 2025
2 parents dfb9b7e + 3b42b6e commit 537aa61
Show file tree
Hide file tree
Showing 24 changed files with 219 additions and 241 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
steps:
- name: Harden Runner
if: (needs.docs_only_check.outputs.docs_only != 'true')
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
environment: gitlab
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
go mod download
- name: Run GitLab tokenless E2E
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1
if: github.event_name == 'pull_request'
with:
max_attempts: 3
Expand All @@ -75,7 +75,7 @@ jobs:
command: make e2e-gitlab

- name: Run GitLab PAT E2E # skip if auth token is not available
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1
if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
env:
GITLAB_AUTH_TOKEN: ${{ secrets.GITLAB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -44,7 +44,7 @@ jobs:
needs: [approve]
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
go mod download
- name: Run GITHUB_TOKEN E2E #using retry because the GitHub token is being throttled.
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: check-linter
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
- uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -31,7 +31,7 @@ jobs:
run: |
echo "GOLANGCI_LINT_VERSION=$(cd tools; go list -m -f '{{ .Version }}' github.com/golangci/golangci-lint)" >> "$GITHUB_ENV"
- name: golangci-lint
uses: golangci/golangci-lint-action@2e788936b09dd82dc280e845628a40d2ba6b204c # v6.3.1
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
only-new-issues: true
34 changes: 17 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
files: ./unit-coverage.out
verbose: true
- name: Run PAT Token E2E #using retry because the GitHub token is being throttled.
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
if: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
Expand All @@ -95,7 +95,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
check-latest: true
cache: true
- name: generate mocks
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand All @@ -143,7 +143,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand All @@ -155,7 +155,7 @@ jobs:
check-latest: true
cache: true
- name: generate docs
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1
with:
max_attempts: 3
retry_on: error
Expand All @@ -172,7 +172,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -192,7 +192,7 @@ jobs:
check-latest: true
cache: true
- name: build-proto
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Cache builds
Expand All @@ -245,7 +245,7 @@ jobs:
check-latest: true
cache: true
- name: Run build
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1
with:
max_attempts: 3
retry_on: error
Expand All @@ -260,7 +260,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -287,7 +287,7 @@ jobs:
check-latest: true
cache: true
- name: Run build
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand All @@ -302,7 +302,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Clone the code
Expand All @@ -314,7 +314,7 @@ jobs:
check-latest: true
cache: true
- name: Run build
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand All @@ -330,7 +330,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -350,7 +350,7 @@ jobs:
check-latest: true
cache: true
- name: Run build
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand All @@ -365,7 +365,7 @@ jobs:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publishimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
COSIGN_EXPERIMENTAL: "true"
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -52,7 +52,7 @@ jobs:
- name: install ko
uses: ko-build/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
- name: publishimage
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e
uses: nick-invision/retry@c97818ca39074beaea45180dba704f92496a0082
with:
max_attempts: 3
retry_on: error
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand Down
6 changes: 2 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@ issues:
- path: 'probes/.+/impl.go'
linters:
- gochecknoinits
skip-files:
- cron/data/request.pb.go # autogenerated
linters:
enable:
- asciicheck
# - copyloopvar # TODO(spencer)
- dogsled
- err113
- errcheck
- errname
- errorlint
- exhaustive
- exportloopref
- forbidigo
- gci
- gochecknoinits
Expand Down Expand Up @@ -69,12 +67,12 @@ linters:
- predeclared
- staticcheck
- stylecheck
- tenv
- thelper
- typecheck
- unconvert
- unused
- usestdlibvars
- usetesting
- whitespace
- wrapcheck
disable:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.23.6@sha256:927112936d6b496ed95f55f362cc09da6e3e624ef868814c56d55bd7323e0959 AS base
FROM golang:1.24.0@sha256:2b1cbf278ce05a2a310a3d695ebb176420117a8cfcfcc4e5e68a1bef5f6354da AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./
Expand Down
2 changes: 1 addition & 1 deletion attestor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.23.6@sha256:927112936d6b496ed95f55f362cc09da6e3e624ef868814c56d55bd7323e0959 AS base
FROM golang:1.24.0@sha256:2b1cbf278ce05a2a310a3d695ebb176420117a8cfcfcc4e5e68a1bef5f6354da AS base
WORKDIR /src/scorecard
COPY . ./

Expand Down
4 changes: 2 additions & 2 deletions checks/raw/code_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func getPhabricatorRevisionID(c *clients.Commit) string {
m := c.Message

match := rePhabricatorRevID.FindStringSubmatch(m)
if match == nil || len(match) < 2 {
if len(match) < 2 {
return ""
}

Expand All @@ -105,7 +105,7 @@ func getPiperRevisionID(c *clients.Commit) string {
m := c.Message

match := rePiperRevID.FindStringSubmatch(m)
if match == nil || len(match) < 2 {
if len(match) < 2 {
return ""
}

Expand Down
2 changes: 1 addition & 1 deletion clients/githubrepo/roundtripper/tokens/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.23.6@sha256:927112936d6b496ed95f55f362cc09da6e3e624ef868814c56d55bd7323e0959 AS base
FROM golang:1.24.0@sha256:2b1cbf278ce05a2a310a3d695ebb176420117a8cfcfcc4e5e68a1bef5f6354da AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* ./
Expand Down
Loading

0 comments on commit 537aa61

Please sign in to comment.