-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zizmor warnings in github actions (#614)
- Loading branch information
Showing
5 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,13 @@ on: | |
- 'runners/**' | ||
- 'cryptography-linux/**' | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
# Build containers for x86 | ||
build: | ||
runs-on: ${{ matrix.IMAGE.RUNNER }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -63,6 +62,8 @@ jobs: | |
name: "${{ matrix.IMAGE.TAG_NAME }}" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- run: | | ||
source ./staticnode/node-version.sh | ||
arch=$(echo "${{ runner.arch }}" | tr '[:upper:]' '[:lower:]') | ||
|
@@ -74,7 +75,7 @@ jobs: | |
run: docker pull ghcr.io/pyca/${{ matrix.IMAGE.TAG_NAME }} || true | ||
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' | ||
- name: Build image | ||
run: docker build --pull --cache-from ghcr.io/pyca/${{ matrix.IMAGE.TAG_NAME }} -t ghcr.io/pyca/${{ matrix.IMAGE.TAG_NAME }} ${{ matrix.IMAGE.DOCKERFILE_PATH }} ${{ matrix.IMAGE.BUILD_ARGS }} --build-arg NODE_ARCH_RELEASE=${{ env.NODE_ARCH_RELEASE }} | ||
run: docker build --pull --cache-from ghcr.io/pyca/${{ matrix.IMAGE.TAG_NAME }} -t ghcr.io/pyca/${{ matrix.IMAGE.TAG_NAME }} ${{ matrix.IMAGE.DOCKERFILE_PATH }} ${{ matrix.IMAGE.BUILD_ARGS }} --build-arg "NODE_ARCH_RELEASE=${NODE_ARCH_RELEASE}" | ||
- name: Login to docker | ||
run: 'docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" ghcr.io' | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,8 @@ jobs: | |
name: "Build OpenSSL for macOS (${{ matrix.ARCH.NAME }})" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- name: Download OpenSSL | ||
run: | | ||
source ./cryptography-linux/openssl-version.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
name: Build Static Node.js Container | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
on: | ||
pull_request: | ||
|
@@ -19,6 +16,9 @@ jobs: | |
build: | ||
name: Build node.js | ||
runs-on: ${{ matrix.IMAGE.RUNNER }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -27,6 +27,8 @@ jobs: | |
- {RUNNER: [self-hosted, Linux, ARM64], MANYLINUX_ARCH: "aarch64"} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- name: Set Node.js version | ||
run: | | ||
source ./staticnode/node-version.sh | ||
|
@@ -50,5 +52,5 @@ jobs: | |
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' | ||
- name: Push image | ||
run: docker push ghcr.io/pyca/static-nodejs-${{ env.NODE_ARCH }}:${{ env.NODE_VERSION }} | ||
run: docker push "ghcr.io/pyca/static-nodejs-${NODE_ARCH}:${NODE_VERSION}" | ||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
name: "Build OpenSSL for ${{ matrix.ARCH }} on MSVC 2022" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- run: choco install -y nasm winrar | ||
- name: Export OpenSSL version | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- run: terraform -chdir=terraform/ fmt -check | ||
- run: terraform -chdir=terraform/ init -backend=false | ||
# Need to have a values.yaml for validate to pass. | ||
|