-
Notifications
You must be signed in to change notification settings - Fork 27
Updates #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Updates #445
Changes from all commits
0d6b515
1ddce6f
fa4123f
f4a17d4
64cedd7
aa25f94
96237cb
d5639d8
858c79e
bbf4fbd
c974002
b82dcdf
ab4b110
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,15 +37,15 @@ jobs: | |
| # Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
|
||
| steps: | ||
| - uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
| - uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1 | ||
| with: | ||
| egress-policy: audit | ||
| - name: Checkout repository | ||
| uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a really odd one. actions/checkout@629c2de doesn't resolve. But the workflow is able to use this sha. It appears to be a sha that references a replaced v2 tag: |
||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest release https://github.com/actions/checkout/releases/tag/v4.2.2 |
||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@5f532563584d71fdef14ee64d17bafb34f751ce5 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was v1.0.26 |
||
| uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest codeql-action action (as opposed to another artifact that the repository ships): https://github.com/github/codeql-action/releases/tag/v3.28.15 |
||
| with: | ||
| languages: ${{ matrix.language }} | ||
| # If you wish to specify custom queries, you can do so here or in a config file. | ||
|
|
@@ -56,7 +56,7 @@ jobs: | |
| # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
| # If this step fails, then you should remove it and run the build manually (see below) | ||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@5f532563584d71fdef14ee64d17bafb34f751ce5 | ||
| uses: github/codeql-action/autobuild@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15 | ||
|
|
||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 https://git.io/JvXDl | ||
|
|
@@ -70,4 +70,4 @@ jobs: | |
| # make release | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@5f532563584d71fdef14ee64d17bafb34f751ce5 | ||
| uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,35 +11,38 @@ env: | |
| GOPRIVATE: github.com/step-security | ||
| jobs: | ||
| integration-test: | ||
| if: github.event.repository.fork == false | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| permissions: | ||
| contents: read | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: step-security/harden-runner@v2 | ||
| - uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1 | ||
| with: | ||
| egress-policy: audit | ||
| - name: Checkout | ||
| uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 | ||
| uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest version https://github.com/actions/setup-go/releases/tag/v5.4.0 |
||
| with: | ||
| go-version: 1.24.1 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this is greater than 1.16 where |
||
|
|
||
| - name: Configure .netrc | ||
| env: | ||
| PAT: ${{ secrets.PAT }} | ||
| run: | | ||
| if [[ ! -e "~/.netrc" ]]; then | ||
| touch ~/.netrc | ||
| fi | ||
| printf "machine github.com login stepsecurity-infra-bot password ${{ secrets.PAT }}" >>~/.netrc | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Best practice is to not use |
||
| printf "machine github.com login stepsecurity-infra-bot password $PAT" >>~/.netrc | ||
|
|
||
| - name: Create go vendor dir | ||
| run: | | ||
| go mod vendor | ||
|
|
||
| - run: sudo go test -v | ||
| - run: go build -ldflags="-s -w" -o ./agent | ||
| - name: Configure aws credentials | ||
| uses: aws-actions/configure-aws-credentials@ea7b857d8a33dc2fb4ef5a724500044281b49a5e | ||
| uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest version https://github.com/aws-actions/configure-aws-credentials/releases/tag/v4.1.0 |
||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,11 +10,12 @@ env: | |
| GOPRIVATE: github.com/step-security | ||
| jobs: | ||
| release: | ||
| if: github.event.repository.fork == false | ||
| permissions: | ||
| contents: write | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
| - uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1 | ||
| with: | ||
| allowed-endpoints: | ||
| api.github.com:443 | ||
|
|
@@ -25,26 +26,28 @@ jobs: | |
| storage.googleapis.com:443 | ||
| uploads.github.com:443 | ||
| - name: Checkout | ||
| uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 | ||
| uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | ||
| with: | ||
| go-version: 1.24.1 | ||
|
|
||
| - name: Configure .netrc | ||
| env: | ||
| PAT: ${{ secrets.PAT }} | ||
| run: | | ||
| if [[ ! -e "~/.netrc" ]]; then | ||
| touch ~/.netrc | ||
| fi | ||
| printf "machine github.com login stepsecurity-infra-bot password ${{ secrets.PAT }}" >>~/.netrc | ||
| printf "machine github.com login stepsecurity-infra-bot password $PAT" >>~/.netrc | ||
|
|
||
|
|
||
| - name: Create go vendor dir | ||
| run: | | ||
| go mod vendor | ||
|
|
||
|
|
||
| - uses: goreleaser/goreleaser-action@5df302e5e9e4c66310a6b6493a8865b12c555af2 | ||
| - uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest version https://github.com/goreleaser/goreleaser-action/releases/tag/v6.3.0 |
||
| with: | ||
| distribution: goreleaser | ||
| version: latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,28 +12,31 @@ env: | |
|
|
||
| jobs: | ||
| test: | ||
| if: github.event.repository.fork == false | ||
| permissions: | ||
| contents: read | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 | ||
| uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | ||
| with: | ||
| go-version: 1.24.1 | ||
|
|
||
| - name: Configure .netrc | ||
| env: | ||
| PAT: ${{ secrets.PAT }} | ||
| run: | | ||
| if [[ ! -e "~/.netrc" ]]; then | ||
| touch ~/.netrc | ||
| fi | ||
| printf "machine github.com login stepsecurity-infra-bot password ${{ secrets.PAT }}" >>~/.netrc | ||
| printf "machine github.com login stepsecurity-infra-bot password $PAT" >>~/.netrc | ||
|
|
||
| - name: Create go vendor dir | ||
| run: | | ||
| go mod vendor | ||
|
|
||
| - name: Run coverage | ||
| run: sudo CI=true go test -race -coverprofile=coverage.txt -covermode=atomic | ||
| - uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 | ||
| - uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the latest version: https://github.com/codecov/codecov-action/releases/tag/v5.4.2 |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the latest release https://github.com/step-security/harden-runner/releases/tag/v2.11.1