Skip to content
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

Fix ::set-output deprecation messages #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion apko-publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ runs:
--network host \
-v $PWD:${{ github.workspace }} \
-v /tmp:/tmp \
-v $GITHUB_OUTPUT:$GITHUB_OUTPUT \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at it again, is this required?

--workdir ${{ github.workspace }} \
-e "GITHUB_ACTOR=${{ inputs.repository_owner }}" \
-e "GITHUB_TOKEN=${{ inputs.token }}" \
Expand Down Expand Up @@ -175,6 +176,6 @@ runs:
${{ inputs.debug && '--log-level debug' }} \
--image-refs="${{ inputs.image_refs }}" ${{ inputs.config }} ${{ inputs.tag }} $keys $repos $packages $archs $build_options $sbomPath | tee ${DIGEST_FILE}
echo EXIT CODE: $?
echo ::set-output name=digest::$(cat ${DIGEST_FILE})
echo "digest=$(cat ${DIGEST_FILE})" >> $GITHUB_OUTPUT
EOF
)"
6 changes: 3 additions & 3 deletions release-monitoring/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ runs:
echo "Response:"
echo "--------"
cat "${TMP}"
echo "::set-output name=latest-version::$(cat "${TMP}" | jq -r .latest_version)"
echo "::set-output name=stable-versions::$(cat "${TMP}" | jq -r '.stable_versions | join(",")')"
echo "::set-output name=all-versions::$(cat "${TMP}" | jq -r '.versions | join(",")')"
echo "latest-version=$(cat "${TMP}" | jq -r .latest_version)" >> $GITHUB_OUTPUT
echo "stable-versions=$(cat "${TMP}" | jq -r '.stable_versions | join(",")')" >> $GITHUB_OUTPUT
echo "all-versions=$(cat "${TMP}" | jq -r '.versions | join(",")')" >> $GITHUB_OUTPUT
6 changes: 3 additions & 3 deletions scan-apk/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
- ${{ inputs.architecture }}
EOF

echo "::set-output name=config-file::${TMP}"
echo "config-file=${TMP}" >> $GITHUB_OUTPUT

- shell: bash
run: |
Expand All @@ -70,7 +70,7 @@ runs:
tag: localhost:1234/apk-scan

- id: grype-scan
uses: anchore/scan-action@ecfd0e98932e57ea8f68f29c4f418fc41a8194db
uses: anchore/scan-action@24fd7c9060f3c96848dd1929fac8d796fb5ae4b4 # v3.3.6
with:
image: localhost:1234/apk-scan
fail-build: false
Expand All @@ -79,4 +79,4 @@ runs:
- id: scan-report
shell: bash
run: |
echo "::set-output name=vuln-count::$(cat ${{ steps.grype-scan.outputs.sarif }} | jq '.runs[0].results | length')"
echo "vuln-count=$(cat ${{ steps.grype-scan.outputs.sarif }} | jq '.runs[0].results | length')" >> $GITHUB_OUTPUT
8 changes: 4 additions & 4 deletions vul-scans/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ runs:

- id: scan-start
run: |
echo ::set-output name=date::$(TZ=Zulu date "+%Y-%m-%dT%H:%M:%SZ")
echo "date=$(TZ=Zulu date "+%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
shell: bash

- id: install-snyk
Expand Down Expand Up @@ -321,9 +321,9 @@ runs:

echo "SNYK_COUNT: $SNYK_COUNT, GRYPE_COUNT: $GRYPE_COUNT, TRIVY_COUNT: $TRIVY_COUNT"

echo "::set-output name=SNYK_COUNT::$SNYK_COUNT"
echo "::set-output name=GRYPE_COUNT::$GRYPE_COUNT"
echo "::set-output name=TRIVY_COUNT::$TRIVY_COUNT"
echo "SNYK_COUNT=$SNYK_COUNT" >> $GITHUB_OUTPUT
echo "GRYPE_COUNT=$GRYPE_COUNT" >> $GITHUB_OUTPUT
echo "TRIVY_COUNT=$TRIVY_COUNT" >> $GITHUB_OUTPUT

- name: Cue Verify Attestation
id: cue-verify
Expand Down